From 29af65cfc1a670bca74c1c8b362a107b9d7b8446 Mon Sep 17 00:00:00 2001 From: BodgeMaster <> Date: Wed, 14 Jun 2023 07:07:17 +0200 Subject: [PATCH] install stage 1: fstab --- install-stage1.sh | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/install-stage1.sh b/install-stage1.sh index 42be269..b664c1c 100644 --- a/install-stage1.sh +++ b/install-stage1.sh @@ -34,6 +34,7 @@ xbps-install --yes xmirror squashfs-tools # xmirror, that should be done here. #TODO: Select keyboard layout +KBD_LAYOUT="de-latin1" clear echo "Select the USB stick to install to (NAME column below)... @@ -153,4 +154,18 @@ echo "repository=$TARGET_MIRROR" > /mnt/target/etc/xbps.d/00-repository-main.con echo "%wheel ALL=(ALL:ALL) ALL" > /mnt/target/etc/sudoers.d/wheel_as_sudo_group.conf -# TODO: add overlayfs scripts (bootup and shutdown) and (if useful) fstab entries +# TODO: add overlayfs scripts (bootup and shutdown) + +echo "# See fstab(5). +# + +# / and /mnt/container are mounted by a script in initramfs +# TODO: add script path + +UUID=$(blkid --output value --match-tag UUID $TARGET_PART_BOOT) /boot f2fs defaults,nodev,nosuid 0 2 +UUID=$(blkid --output value --match-tag UUID $TARGET_PART_EFI) /boot/efi vfat defaults 0 2 +/mnt/container/home /home none bind 0 0 +" > /mnt/target/etc/fstab + + +#