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 /0-preinstall.sh | |
| parent | 1d66ca76657aa8b4c6db0c54b4c9a0e0130c1678 (diff) | |
| download | ArchTitus-test.tar.xz ArchTitus-test.zip | |
grub installtest
Diffstat (limited to '0-preinstall.sh')
| -rwxr-xr-x | 0-preinstall.sh | 14 |
1 files changed, 6 insertions, 8 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 "--------------------------------------" |
