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=cff15ed664f9ff77fcbc1d08f3f870f903ca0103;hp=283bbf66610efff9f2fc3cf4e11875d4cf48a3a0;hb=61c3a58fcfadab7c333487f887b3f9f3a53bb93a;hpb=a199d585d33ace63662c0fea99a5c5d6d498d14b diff --git a/fai/config/files/root/fai-check/VOL_BUSTER_BOOTSTRAP b/fai/config/files/root/fai-check/VOL_BUSTER_BOOTSTRAP index 283bbf6..cff15ed 100755 --- a/fai/config/files/root/fai-check/VOL_BUSTER_BOOTSTRAP +++ b/fai/config/files/root/fai-check/VOL_BUSTER_BOOTSTRAP @@ -47,10 +47,17 @@ case $1 in ;; esac + first=true for dev in $(btrfs fi show / | sed -rn 's#^\s*devid\s.*\s([^0-9 ]+)\S+$#\1#p' \ |sort); do - dev+=4 + + if [[ $(blockdev --getsize64 ${boot_disk}4) == 8388608 ]]; then + # old partition scheme + dev+=4 + else + dev+=5 + fi mount $dev /mnt if $first; then if [[ -e /mnt/grubenv ]]; then