support for efi boot

This commit is contained in:
nannal 2021-01-09 00:59:54 +02:00
parent 803ed42876
commit d710b913ca
2 changed files with 18 additions and 15 deletions

View File

@ -20,21 +20,26 @@ echo "Blue password"
passwd blue
echo "Does this build use EFI? [y/N]"
read efiCheck
# mkdir /boot/efi
# mount /dev/sda1 /boot/efi
# grub-install --target=x86_64-efi --bootloader-id=GRUB --efi-directory=/boot/efi
# grub-mkconfig -o /boot/grub/grub.cfg
grub-install /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg
if [[ $efiCheck == y ]]; then
fdisk -l
echo "Enter the boot device name /dev/..."
read $bootdevice
mkdir /boot/efi
mount /dev/$bootdevice /boot/efi
grub-install --target=x86_64-efi --bootloader-id=GRUB --efi-directory=/boot/efi
grub-mkconfig -o /boot/grub/grub.cfg
else
grub-install $(cat /proc/mounts|grep btrfs |grep ' / '|head -n 1|cut -f 1 -d ' ')
grub-mkconfig -o /boot/grub/grub.cfg
fi
systemctl enable lightdm
systemctl enable NetworkManager.service
systemctl enable systemd-resolved
cd /opt
@ -47,5 +52,3 @@ echo "blue ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
sudo -u blue makepkg -si
exit
reboot

View File

@ -7,7 +7,7 @@
pacman -Syy
pacstrap /mnt base linux linux-firmware grub efibootmgr xorg leafpad vim git lxde lightdm lightdm-gtk-greeter lxde-common lxterminal lxsession openbox sudo base-devel go
pacstrap /mnt base linux linux-firmware grub efibootmgr xorg leafpad vim git lxde lightdm lightdm-gtk-greeter lxde-common lxterminal lxsession openbox sudo base-devel go nm-connection-editor networkmanager fdisk
genfstab -U /mnt >> /mnt/etc/fstab