fix: wait until kernel reloads partition table
This commit is contained in:
parent
0bc18b7991
commit
99ad40dd5b
|
@ -13,6 +13,9 @@ function setup_drive
|
||||||
mkpart '"root unused"' ext4 2049 3072 \
|
mkpart '"root unused"' ext4 2049 3072 \
|
||||||
mkpart '"root unused"' ext4 3073 4096 \
|
mkpart '"root unused"' ext4 3073 4096 \
|
||||||
mkpart Encrypted ext4 4097 -1
|
mkpart Encrypted ext4 4097 -1
|
||||||
|
until [ -b "$drive"1 ] || [ -b "$drive"p1 ]; do
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
function rename_partition
|
function rename_partition
|
||||||
|
|
Loading…
Reference in New Issue
Block a user