X-Git-Url: https://iankelling.org/git/?p=automated-distro-installer;a=blobdiff_plain;f=fai%2Fconfig%2Fscripts%2FGRUB_PC%2F10-setup;fp=fai%2Fconfig%2Fscripts%2FGRUB_PC%2F10-setup;h=47b3ba49195db9c0978482e5e6350f5e71368ffb;hp=160dfa2e35fd05333a5b98a895b90e826818aa72;hb=e6c8a36522847eca91819ab3eb656dd824bc3e3c;hpb=836348b3deca3d4544bcf4ece81d8609740da550 diff --git a/fai/config/scripts/GRUB_PC/10-setup b/fai/config/scripts/GRUB_PC/10-setup index 160dfa2..47b3ba4 100755 --- a/fai/config/scripts/GRUB_PC/10-setup +++ b/fai/config/scripts/GRUB_PC/10-setup @@ -25,7 +25,7 @@ if [ $FAI_ACTION != "install" ]; then exit $error fi -$ROOTCMD grub-mkdevicemap --no-floppy +GROOT=$($ROOTCMD grub-probe -tdrive -d $BOOT_DEVICE) # Check if RAID is used for the boot device @@ -39,14 +39,10 @@ if [[ $BOOT_DEVICE =~ '/dev/md' ]]; then done elif [[ $GROOT =~ 'hostdisk' ]]; then - cat > $target/boot/grub/device.map <