fixes and updates for t10
[automated-distro-installer] / fai / config / files / root / fai-check / VOL_BUSTER_BOOTSTRAP
index cff15ed664f9ff77fcbc1d08f3f870f903ca0103..e063ab2b4a37fce0dbaa9108d2ec3dd1028992e4 100755 (executable)
@@ -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