alpine-install-on-disk: use hdparm to force reread of table
This commit is contained in:
parent
1b6a599bcf
commit
7ff34081ac
1 changed files with 2 additions and 0 deletions
|
@ -59,6 +59,7 @@ case "$BOOT_VIA" in
|
||||||
label: dos
|
label: dos
|
||||||
,,L
|
,,L
|
||||||
EOF
|
EOF
|
||||||
|
doas hdparm -z $DISK
|
||||||
# For creation, if an existing filesystem is on the partitions
|
# For creation, if an existing filesystem is on the partitions
|
||||||
doas mkfs.ext4 -F ${partition1}
|
doas mkfs.ext4 -F ${partition1}
|
||||||
doas mount -t ext4 ${partition1} $rootfs_tmpdir
|
doas mount -t ext4 ${partition1} $rootfs_tmpdir
|
||||||
|
@ -69,6 +70,7 @@ label: gpt
|
||||||
,500MiB,U
|
,500MiB,U
|
||||||
,,L
|
,,L
|
||||||
EOF
|
EOF
|
||||||
|
doas hdparm -z $DISK
|
||||||
doas mkfs.vfat ${partition1}
|
doas mkfs.vfat ${partition1}
|
||||||
doas mkfs.ext4 -F ${partition2}
|
doas mkfs.ext4 -F ${partition2}
|
||||||
doas mount -t ext4 ${partition2} "$rootfs_tmpdir"
|
doas mount -t ext4 ${partition2} "$rootfs_tmpdir"
|
||||||
|
|
Loading…
Add table
Reference in a new issue