diff --git a/alpine-install-on-disk.sh b/alpine-install-on-disk.sh index 7068401..1747430 100755 --- a/alpine-install-on-disk.sh +++ b/alpine-install-on-disk.sh @@ -60,6 +60,15 @@ run_root chmod 0700 /root/.ssh # Import local resolv.conf. sudo cp "$RESOLVCONF" $rootfs_tmpdir/etc/resolv.conf +# Generate fstab which is later included in the initramfs + +# Add filesystem to fstab, because busybox mount does not work +# without -t ext4 for mounting and returns "No such file or directory" +# nb2:~# blkid| grep ^${DISK}1 | awk '{ print $2 }' +# UUID="fecf4182-f6dd-4d2c-9af7-8f36444ee25c" +eval $(blkid | grep ^${DISK}1 | awk '{ print $2 }') +echo "UUID=$UUID / ext4 0 1" >> ${rootfs_tmpdir}/etc/fstab + run_root apk update run_root apk add linux-lts openrc udev openssh