* util/grub.d/10_linux.in: Don't use UUID for LVM root.

This commit is contained in:
Sean Finney 2010-07-01 23:24:21 +02:00 committed by Vladimir 'phcoder' Serbinenko
parent 5944958c61
commit 105a2e8c66
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2010-07-01 Sean Finney <seanius@seanius.net>
* util/grub.d/10_linux.in: Don't use UUID for LVM root.
2010-07-01 Sean Finney <seanius@seanius.net> 2010-07-01 Sean Finney <seanius@seanius.net>
* disk/lvm.c (grub_lvm_scan_device): Skip snapshots. * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.

View file

@ -44,7 +44,8 @@ case ${GRUB_DEVICE} in
esac esac
if [ "x${GRUB_DEVICE_UUID}" = "x" ] || [ "x${GRUB_DISABLE_LINUX_UUID}" = "xtrue" ] \ if [ "x${GRUB_DEVICE_UUID}" = "x" ] || [ "x${GRUB_DISABLE_LINUX_UUID}" = "xtrue" ] \
|| ! test -e "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" ; then || ! test -e "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" \
|| [ "x`grub-probe -t abstraction --device ${GRUB_DEVICE}`" = "xlvm" ] ; then
LINUX_ROOT_DEVICE=${GRUB_DEVICE} LINUX_ROOT_DEVICE=${GRUB_DEVICE}
else else
LINUX_ROOT_DEVICE=UUID=${GRUB_DEVICE_UUID} LINUX_ROOT_DEVICE=UUID=${GRUB_DEVICE_UUID}