Compare commits

..

2 Commits

Author SHA1 Message Date
BodgeMaster 6f47e6ee19 install stage 2: add more user groups 2026-04-09 16:22:55 +02:00
BodgeMaster 466f67ac4c install stage 1: disable grub native disk drivers as it hurts more than it helps 2026-04-06 14:02:12 +02:00
2 changed files with 4 additions and 10 deletions

View File

@ -601,10 +601,9 @@ echo "GRUB has been deliberately installed to a non-standard location.
This avoids default kernel hooks breaking the custom config." > /mnt/target/boot/efi/LOADER/README.TXT This avoids default kernel hooks breaking the custom config." > /mnt/target/boot/efi/LOADER/README.TXT
# no idea if any of these are even necessary/relevant but it can't hurt... # no idea if any of these are even necessary/relevant but it can't hurt...
TARGET_PRELOAD_GRUB_MODULES="usb usbms uhci ehci ohci part_gpt f2fs ahci ata pata" run_in_target grub-install --target=i386-pc --boot-directory=/boot/efi/LOADER "'/dev/$TARGET_DISK'" >> $LOGFILE 2>&1
run_in_target grub-install --target=i386-pc --boot-directory=/boot/efi/LOADER --disk-module=native --modules="'$TARGET_PRELOAD_GRUB_MODULES'" "'/dev/$TARGET_DISK'" >> $LOGFILE 2>&1 run_in_target grub-install --target=i386-efi --boot-directory=/boot/efi/LOADER --efi-directory=/boot/efi --removable --no-nvram "'/dev/$TARGET_DISK'" >> $LOGFILE 2>&1
run_in_target grub-install --target=i386-efi --boot-directory=/boot/efi/LOADER --disk-module=native --efi-directory=/boot/efi --removable --no-nvram --modules="'$TARGET_PRELOAD_GRUB_MODULES'" "'/dev/$TARGET_DISK'" >> $LOGFILE 2>&1 run_in_target grub-install --target=x86_64-efi --boot-directory=/boot/efi/LOADER --efi-directory=/boot/efi --removable --no-nvram "'/dev/$TARGET_DISK'" >> $LOGFILE 2>&1
run_in_target grub-install --target=x86_64-efi --boot-directory=/boot/efi/LOADER --disk-module=native --efi-directory=/boot/efi --removable --no-nvram --modules="'$TARGET_PRELOAD_GRUB_MODULES'" "'/dev/$TARGET_DISK'" >> $LOGFILE 2>&1
echo "done" echo "done"
echo -n "Adding grub-config helper... " echo -n "Adding grub-config helper... "

View File

@ -131,13 +131,8 @@ echo "Setting up user..."
read -p "Enter username: " NEW_USER read -p "Enter username: " NEW_USER
#TODO: let the user choose additional groups (suggest sane defaults for different use cases) #TODO: let the user choose additional groups (suggest sane defaults for different use cases)
# cdrom? optical? storage? what they do? # cdrom? optical? storage? what they do?
# scanner
# network (check if this even still does anything)
# kvm
# audio, video
# dialout
# users (dows this even do anything) # users (dows this even do anything)
useradd -m -s /bin/bash -G wheel,video,audio,dialout,network "$NEW_USER" useradd -m -s /bin/bash -G wheel,users,kvm,video,audio,dialout,network,scanner "$NEW_USER"
passwd "$NEW_USER" passwd "$NEW_USER"
echo "Cleaning up installation files..." echo "Cleaning up installation files..."