[alpine installer] add fs type on mount

This commit is contained in:
Nico Schottelius 2022-03-13 17:35:19 +01:00
parent 549f9d8edb
commit 888a1bbd14

View file

@ -61,7 +61,7 @@ label: dos
EOF EOF
# For creation, if an existing filesystem is on the partitions # For creation, if an existing filesystem is on the partitions
sudo mkfs.ext4 -F ${partition1} sudo mkfs.ext4 -F ${partition1}
sudo mount ${partition1} $rootfs_tmpdir sudo mount -t ext4 ${partition1} $rootfs_tmpdir
;; ;;
efi) efi)
sudo sfdisk "$DISK" <<EOF sudo sfdisk "$DISK" <<EOF
@ -71,9 +71,9 @@ label: gpt
EOF EOF
sudo mkfs.vfat ${partition1} sudo mkfs.vfat ${partition1}
sudo mkfs.ext4 -F ${partition2} sudo mkfs.ext4 -F ${partition2}
sudo mount ${partition2} "$rootfs_tmpdir" sudo mount -t ext4 ${partition2} "$rootfs_tmpdir"
sudo mkdir "${rootfs_tmpdir}/boot" sudo mkdir "${rootfs_tmpdir}/boot"
sudo mount ${partition1} "${rootfs_tmpdir}/boot" sudo mount -t vfat ${partition1} "${rootfs_tmpdir}/boot"
;; ;;
*) *)
echo "Unknown disk format, $BOOT_VIA" >&2 echo "Unknown disk format, $BOOT_VIA" >&2