[Fai-commit] r4683 - trunk/examples/simple/files/boot/grub/menu.lst
lange at alioth.debian.org
lange at alioth.debian.org
Sat Nov 10 15:53:05 UTC 2007
Author: lange
Date: 2007-11-10 15:53:05 +0000 (Sat, 10 Nov 2007)
New Revision: 4683
Modified:
trunk/examples/simple/files/boot/grub/menu.lst/postinst
Log:
check if important variables are defined (closes: #445978)
Modified: trunk/examples/simple/files/boot/grub/menu.lst/postinst
===================================================================
--- trunk/examples/simple/files/boot/grub/menu.lst/postinst 2007-11-10 15:31:20 UTC (rev 4682)
+++ trunk/examples/simple/files/boot/grub/menu.lst/postinst 2007-11-10 15:53:05 UTC (rev 4683)
@@ -10,6 +10,9 @@
# if class NOMBR is defined, write boot loader into root partition, not into mbr
ifclass NOMBR && BOOT_DEVICE=$BOOT_PARTITION
+[ -z "$BOOT_DEVICE" ] && exit 701
+[ -z "$BOOT_PARTITION" ] && exit 702
+
grub-install --no-floppy --root-directory=$target $BOOT_DEVICE
GROOT=$(device2grub $BOOT_PARTITION)
perl -pi -e 's/#(\w+)#/$ENV{$1}/' $2
More information about the Fai-commit
mailing list