From: Ian Kelling Date: Mon, 20 May 2024 20:13:19 +0000 (-0400) Subject: fix bad merge of upstream config X-Git-Url: https://iankelling.org/git/?a=commitdiff_plain;h=a69dd442e7381deaec866989a4944efa4f73a8c3;p=automated-distro-installer fix bad merge of upstream config --- diff --git a/fai/config/scripts/GRUB_PC/10-setup b/fai/config/scripts/GRUB_PC/10-setup index ed8d878..7ea23fd 100755 --- a/fai/config/scripts/GRUB_PC/10-setup +++ b/fai/config/scripts/GRUB_PC/10-setup @@ -84,10 +84,11 @@ if [[ $BOOT_DEVICE =~ '/dev/md' ]]; then else for dev in $BOOT_DEVICE; do mbrdev=$(get_stable_devname $dev) - if [ -z "$mbrdevices" ]; then + if [ -z "$mbrdev" ]; then # if we cannot find a persistent name (for e.g. in a VM) use old name - mbrdevices+="$dev, " + mbrdev="$dev" fi + mbrdevices+="$mbrdev, " echo "Installing grub on $dev = $mbrdev" $ROOTCMD grub-install --no-floppy "$mbrdev" done