Bug#211096: Patch for LABEL= and UUID= support for update-grub
Thomas Nilsson
Thomas Nilsson <thomas@xmms.org>, 211096@bugs.debian.org
Mon, 12 Jan 2004 13:10:26 +0100
Package: grub
Version: 0.93+cvs20031021-8
Severity: normal
Followup-For: Bug #211096
Here's a fix that takes care of LABEL= and UUID= entries in fstab so
that the script just doesn't bomb out to /dev/hda1.
--- update-grub.original 2004-01-12 10:29:16.000000000 +0100
+++ update-grub 2004-01-12 12:42:57.000000000 +0100
@@ -70,7 +70,14 @@
fi
if [ -n "$device" ] ; then
- device=`readlink -f "$device"`
+ case "$device" in
+ LABEL=* | UUID=*)
+ device=`readlink -f "$(findfs $device)"`
+ ;;
+ *)
+ device=`readlink -f "$device"`
+ ;;
+ esac
fi
echo $device
-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux decay 2.6.0-test6ftl3 #1 Tue Oct 14 23:01:24 CEST 2003 i686
Locale: LANG=C, LC_CTYPE=C
Versions of packages grub depends on:
ii libc6 2.3.2.ds1-10 GNU C Library: Shared libraries an
ii libncurses5 5.3.20030719-4 Shared libraries for terminal hand
-- no debconf information