install stage 1: Start configuring dracut

master
BodgeMaster 2023-06-28 07:46:48 +02:00
parent 494242fa5f
commit cdc60158c4
1 changed files with 15 additions and 2 deletions

View File

@ -177,17 +177,28 @@ XBPS_ARCH="$TARGET_TYPE" xbps-install --yes --sync --rootdir /mnt/target --repos
wifi-firmware traceroute grep gzip file sed gawk less coreutils findutils \
diffutils pciutils usbutils tzdata base-files ncurses mdocml procps-ng \
kbd xbps sudo ethtool kmod eudev runit-void removed-packages nano acpid \
squashfs-tools grub grub-i386-efi grub-x86_64-efi dracut
squashfs-tools grub grub-i386-efi grub-x86_64-efi dracut xz
echo "repository=$TARGET_MIRROR" > /mnt/target/etc/xbps.d/00-repository-main.conf
echo "%wheel ALL=(ALL:ALL) ALL" > /mnt/target/etc/sudoers.d/wheel_as_sudo_group.conf
# TODO: add overlayfs scripts (bootup)
mkdir -p /mnt/target/opt/void-usb
chmod 755 /mnt/target/opt/void-usb
echo "UUID=$(blkid --output value --match-tag UUID $TARGET_PART_BIG) /container f2fs defaults,rw,nodev,nosuid 0 1" > /mnt/target/opt/void-usb/initramfs-fstab
echo '# Void USB dracut configuration
hostonly="no"
omit_dracutmodules+=" nvdimm resume "
compress="xz"
add_fstab+=" /opt/void-usb/initramfs-fstab "' > /mnt/target/etc/dracut.conf.d/99-void-usb.conf
# TODO: add dracut modules
wget --output-document=/mnt/target/opt/void-usb/backup-fs https://lostcave.ddnss.de/git/BodgeMaster/void-minecraft-usb/raw/branch/master/opt/backup-fs
chmod 744 /mnt/target/opt/void-usb/backup-fs
echo "
@ -197,6 +208,8 @@ echo "# See fstab(5).
# <device> <mount point> <fstype> <options> <dump> <pass>
# /container and the underlying image for / are mounted by initramfs
# TODO: Do we need them here?
# TODO: add overlayfs
UUID=$(blkid --output value --match-tag UUID $TARGET_PART_BOOT) /boot f2fs defaults,nodev,nosuid 0 2