diff options
| author | Chris Titus <[email protected]> | 2021-10-27 18:56:37 -0500 |
|---|---|---|
| committer | Chris Titus <[email protected]> | 2021-10-27 18:56:37 -0500 |
| commit | 8a59f337ea81d155824d2f28b4863ed74be12f05 (patch) | |
| tree | dba8672615c9f667b2f676804d1625f1e8ecc5c8 | |
| parent | 1d66ca76657aa8b4c6db0c54b4c9a0e0130c1678 (diff) | |
| download | ArchTitus-test.tar.xz ArchTitus-test.zip | |
grub installtest
| -rwxr-xr-x | 0-preinstall.sh | 14 | ||||
| -rwxr-xr-x | 3-post-setup.sh | 5 |
2 files changed, 8 insertions, 11 deletions
diff --git a/0-preinstall.sh b/0-preinstall.sh index b01f2d0..1ef4d2e 100755 --- a/0-preinstall.sh +++ b/0-preinstall.sh @@ -112,16 +112,14 @@ pacstrap /mnt base base-devel linux linux-firmware vim nano sudo archlinux-keyri genfstab -U /mnt >> /mnt/etc/fstab echo "keyserver hkp://keyserver.ubuntu.com" >> /mnt/etc/pacman.d/gnupg/gpg.conf echo "--------------------------------------" -echo "-- Bootloader Systemd Installation --" +echo "-- GRUB Bootloader Installation --" echo "--------------------------------------" bootctl install --esp-path=/mnt/boot -[ ! -d "/mnt/boot/loader/entries" ] && mkdir -p /mnt/boot/loader/entries -cat <<EOF > /mnt/boot/loader/entries/arch.conf -title Arch Linux -linux /vmlinuz-linux -initrd /initramfs-linux.img -options root=LABEL=ROOT rw rootflags=subvol=@ -EOF +if [[ ! -d "/sys/firmware/efi" ]]; then + grub-install --boot-directory=/mnt/boot ${DISK} +else + grub-install --efi-directory=/mnt/boot ${DISK} +fi cp -R ${SCRIPT_DIR} /mnt/root/ArchTitus cp /etc/pacman.d/mirrorlist /mnt/etc/pacman.d/mirrorlist echo "--------------------------------------" diff --git a/3-post-setup.sh b/3-post-setup.sh index 1b63457..a550d20 100755 --- a/3-post-setup.sh +++ b/3-post-setup.sh @@ -10,14 +10,13 @@ echo -e "\nFINAL SETUP AND CONFIGURATION" +grub-mkconfig -o /boot/grub/grub.cfg + # ------------------------------------------------------------------------ echo -e "\nEnabling Login Display Manager" - systemctl enable sddm.service - echo -e "\nSetup SDDM Theme" - cat <<EOF > /etc/sddm.conf [Theme] Current=Nordic |
