X-Git-Url: https://iankelling.org/git/?p=automated-distro-installer;a=blobdiff_plain;f=fai%2Fconfig%2Ffiles%2Froot%2Ffai-check%2FVOL_BUSTER_BOOTSTRAP;h=e063ab2b4a37fce0dbaa9108d2ec3dd1028992e4;hp=cff15ed664f9ff77fcbc1d08f3f870f903ca0103;hb=6315fdaa029f0f107d98fde18ab584f958e06108;hpb=739efea3642e2f8a7a672c4600da152a27bedf1a diff --git a/fai/config/files/root/fai-check/VOL_BUSTER_BOOTSTRAP b/fai/config/files/root/fai-check/VOL_BUSTER_BOOTSTRAP index cff15ed..e063ab2 100755 --- a/fai/config/files/root/fai-check/VOL_BUSTER_BOOTSTRAP +++ b/fai/config/files/root/fai-check/VOL_BUSTER_BOOTSTRAP @@ -52,8 +52,10 @@ first=true for dev in $(btrfs fi show / | sed -rn 's#^\s*devid\s.*\s([^0-9 ]+)\S+$#\1#p' \ |sort); do - if [[ $(blockdev --getsize64 ${boot_disk}4) == 8388608 ]]; then - # old partition scheme + # Decide which is my grub_ext partition. see partition.DEFAULT file + # for details + if [[ $(blockdev --getsize64 ${dev}4) == 8388608 ]]; then + # Old partition scheme dev+=4 else dev+=5