grub install
This commit is contained in:
parent
1d66ca7665
commit
8a59f337ea
|
|
@ -112,16 +112,14 @@ pacstrap /mnt base base-devel linux linux-firmware vim nano sudo archlinux-keyri
|
||||||
genfstab -U /mnt >> /mnt/etc/fstab
|
genfstab -U /mnt >> /mnt/etc/fstab
|
||||||
echo "keyserver hkp://keyserver.ubuntu.com" >> /mnt/etc/pacman.d/gnupg/gpg.conf
|
echo "keyserver hkp://keyserver.ubuntu.com" >> /mnt/etc/pacman.d/gnupg/gpg.conf
|
||||||
echo "--------------------------------------"
|
echo "--------------------------------------"
|
||||||
echo "-- Bootloader Systemd Installation --"
|
echo "-- GRUB Bootloader Installation --"
|
||||||
echo "--------------------------------------"
|
echo "--------------------------------------"
|
||||||
bootctl install --esp-path=/mnt/boot
|
bootctl install --esp-path=/mnt/boot
|
||||||
[ ! -d "/mnt/boot/loader/entries" ] && mkdir -p /mnt/boot/loader/entries
|
if [[ ! -d "/sys/firmware/efi" ]]; then
|
||||||
cat <<EOF > /mnt/boot/loader/entries/arch.conf
|
grub-install --boot-directory=/mnt/boot ${DISK}
|
||||||
title Arch Linux
|
else
|
||||||
linux /vmlinuz-linux
|
grub-install --efi-directory=/mnt/boot ${DISK}
|
||||||
initrd /initramfs-linux.img
|
fi
|
||||||
options root=LABEL=ROOT rw rootflags=subvol=@
|
|
||||||
EOF
|
|
||||||
cp -R ${SCRIPT_DIR} /mnt/root/ArchTitus
|
cp -R ${SCRIPT_DIR} /mnt/root/ArchTitus
|
||||||
cp /etc/pacman.d/mirrorlist /mnt/etc/pacman.d/mirrorlist
|
cp /etc/pacman.d/mirrorlist /mnt/etc/pacman.d/mirrorlist
|
||||||
echo "--------------------------------------"
|
echo "--------------------------------------"
|
||||||
|
|
|
||||||
|
|
@ -10,14 +10,13 @@
|
||||||
|
|
||||||
echo -e "\nFINAL SETUP AND CONFIGURATION"
|
echo -e "\nFINAL SETUP AND CONFIGURATION"
|
||||||
|
|
||||||
|
grub-mkconfig -o /boot/grub/grub.cfg
|
||||||
|
|
||||||
# ------------------------------------------------------------------------
|
# ------------------------------------------------------------------------
|
||||||
|
|
||||||
echo -e "\nEnabling Login Display Manager"
|
echo -e "\nEnabling Login Display Manager"
|
||||||
|
|
||||||
systemctl enable sddm.service
|
systemctl enable sddm.service
|
||||||
|
|
||||||
echo -e "\nSetup SDDM Theme"
|
echo -e "\nSetup SDDM Theme"
|
||||||
|
|
||||||
cat <<EOF > /etc/sddm.conf
|
cat <<EOF > /etc/sddm.conf
|
||||||
[Theme]
|
[Theme]
|
||||||
Current=Nordic
|
Current=Nordic
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue