fix: wait until kernel reloads partition table

This commit is contained in:
Peter Šurda 2021-03-02 22:02:55 +01:00
parent 0bc18b7991
commit 99ad40dd5b
Signed by: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87

View File

@ -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