iankelling.org
/
git
/
automated-distro-installer
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixes and updates for t10
[automated-distro-installer]
/
fai
/
config
/
files
/
root
/
fai-check
/
VOL_BUSTER_BOOTSTRAP
diff --git
a/fai/config/files/root/fai-check/VOL_BUSTER_BOOTSTRAP
b/fai/config/files/root/fai-check/VOL_BUSTER_BOOTSTRAP
index 283bbf66610efff9f2fc3cf4e11875d4cf48a3a0..e063ab2b4a37fce0dbaa9108d2ec3dd1028992e4 100755
(executable)
--- a/
fai/config/files/root/fai-check/VOL_BUSTER_BOOTSTRAP
+++ b/
fai/config/files/root/fai-check/VOL_BUSTER_BOOTSTRAP
@@
-47,10
+47,19
@@
case $1 in
;;
esac
;;
esac
+
first=true
for dev in $(btrfs fi show / | sed -rn 's#^\s*devid\s.*\s([^0-9 ]+)\S+$#\1#p' \
|sort); do
first=true
for dev in $(btrfs fi show / | sed -rn 's#^\s*devid\s.*\s([^0-9 ]+)\S+$#\1#p' \
|sort); do
- dev+=4
+
+ # 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
+ fi
mount $dev /mnt
if $first; then
if [[ -e /mnt/grubenv ]]; then
mount $dev /mnt
if $first; then
if [[ -e /mnt/grubenv ]]; then