From 7ff34081ace4616e6d2fc7da7bb85e74d8b53876 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Tue, 30 May 2023 13:26:54 +0200 Subject: [PATCH] alpine-install-on-disk: use hdparm to force reread of table --- alpine-install-on-disk.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/alpine-install-on-disk.sh b/alpine-install-on-disk.sh index 164aed5..baae22c 100755 --- a/alpine-install-on-disk.sh +++ b/alpine-install-on-disk.sh @@ -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"