3 error=0 ; trap "error=$((error|1))" ERR
7 # during softupdate use this file
8 [ -r $target/var/log/fai/disk_var.sh ] && . $target/var/log/fai/disk_var.sh
10 # if class NOMBR is defined, write boot loader into root partition, not into mbr
11 ifclass NOMBR && BOOT_DEVICE=$BOOT_PARTITION
13 grub-install --no-floppy --root-directory=$target $BOOT_DEVICE
14 GROOT=$(device2grub $BOOT_PARTITION)
15 perl -pi -e 's/#(\w+)#/$ENV{$1}/' $2
16 $ROOTCMD /usr/sbin/update-grub
17 echo "Grub installed on $BOOT_DEVICE on $GROOT"