summaryrefslogtreecommitdiff
path: root/hook-functions
diff options
context:
space:
mode:
authorPiotr Lewandowski <piotr.lewandowski@gmail.com>2009-10-16 23:25:53 +0200
committermaximilian attems <maks@debian.org>2010-03-24 04:02:58 +0100
commit3de636e6c8c578c1b74c6eca0b8660ec8b0a9d36 (patch)
treed93ef3ca0bd60e94206772bbe91c20747379a2ab /hook-functions
parent722cb312d3dc0e27b794aaa5eac7db331a9ebf8c (diff)
downloadinitramfs-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>
Diffstat (limited to 'hook-functions')
-rw-r--r--hook-functions2
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})"