Compare commits

..

No commits in common. "6f47e6ee1915473b29d14e27b7abdaa8cdb02d1e" and "eaeed6bd90af0272ff9a917e5ea75eba9aa56707" have entirely different histories.

2 changed files with 10 additions and 4 deletions

View File

@ -601,9 +601,10 @@ 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...
run_in_target grub-install --target=i386-pc --boot-directory=/boot/efi/LOADER "'/dev/$TARGET_DISK'" >> $LOGFILE 2>&1 TARGET_PRELOAD_GRUB_MODULES="usb usbms uhci ehci ohci part_gpt f2fs ahci ata pata"
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-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=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=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 --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,8 +131,13 @@ 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,users,kvm,video,audio,dialout,network,scanner "$NEW_USER" useradd -m -s /bin/bash -G wheel,video,audio,dialout,network "$NEW_USER"
passwd "$NEW_USER" passwd "$NEW_USER"
echo "Cleaning up installation files..." echo "Cleaning up installation files..."