diff options
author | Piotr Lewandowski <piotr.lewandowski@gmail.com> | 2009-10-16 23:25:53 +0200 |
---|---|---|
committer | maximilian attems <maks@debian.org> | 2010-03-24 04:02:58 +0100 |
commit | 3de636e6c8c578c1b74c6eca0b8660ec8b0a9d36 (patch) | |
tree | d93ef3ca0bd60e94206772bbe91c20747379a2ab | |
parent | 722cb312d3dc0e27b794aaa5eac7db331a9ebf8c (diff) | |
download | initramfs-tools-3de636e6c8c578c1b74c6eca0b8660ec8b0a9d36.tar.gz initramfs-tools-3de636e6c8c578c1b74c6eca0b8660ec8b0a9d36.zip |
update-initramfs breaks if /etc/mtab is a symlink to /proc/mounts
The attached patch fixes the problem for me (udev no longer ships vol_id
since 146-1).
(closes: #525606)
[ Fix not hardcoding blkid path ]
Signed-off-by: maximilian attems <maks@debian.org>
-rw-r--r-- | hook-functions | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hook-functions b/hook-functions index 98597db..2184db5 100644 --- a/hook-functions +++ b/hook-functions @@ -259,7 +259,7 @@ dep_add_modules() # findout root block device + fstype eval "$(mount | awk '/\/dev\// {if ($3 == "/") {print "root=" $1 "\nFSTYPE=" $5; exit}}')" if [ "${root}" = "/dev/root" ] ; then - root="/dev/disk/by-uuid/"$(/lib/udev/vol_id --uuid ${root}) 2>/dev/null + root="/dev/disk/by-uuid/"$(blkid -o value -s UUID ${root}) 2>/dev/null fi root="$(readlink -f ${root})" |