alpine-install-on-disk: use hdparm to force reread of table

This commit is contained in:
Nico Schottelius 2023-05-30 13:26:54 +02:00
parent 1b6a599bcf
commit 7ff34081ac
1 changed files with 2 additions and 0 deletions

View File

@ -59,6 +59,7 @@ case "$BOOT_VIA" in
label: dos
,,L
EOF
doas hdparm -z $DISK
# For creation, if an existing filesystem is on the partitions
doas mkfs.ext4 -F ${partition1}
doas mount -t ext4 ${partition1} $rootfs_tmpdir
@ -69,6 +70,7 @@ label: gpt
,500MiB,U
,,L
EOF
doas hdparm -z $DISK
doas mkfs.vfat ${partition1}
doas mkfs.ext4 -F ${partition2}
doas mount -t ext4 ${partition2} "$rootfs_tmpdir"