support for efi boot
This commit is contained in:
parent
803ed42876
commit
d710b913ca
31
chscript.sh
31
chscript.sh
@ -20,21 +20,26 @@ echo "Blue password"
|
|||||||
passwd blue
|
passwd blue
|
||||||
|
|
||||||
|
|
||||||
|
echo "Does this build use EFI? [y/N]"
|
||||||
|
|
||||||
|
read efiCheck
|
||||||
|
|
||||||
# mkdir /boot/efi
|
if [[ $efiCheck == y ]]; then
|
||||||
|
fdisk -l
|
||||||
# mount /dev/sda1 /boot/efi
|
echo "Enter the boot device name /dev/..."
|
||||||
|
read $bootdevice
|
||||||
# grub-install --target=x86_64-efi --bootloader-id=GRUB --efi-directory=/boot/efi
|
mkdir /boot/efi
|
||||||
|
mount /dev/$bootdevice /boot/efi
|
||||||
# grub-mkconfig -o /boot/grub/grub.cfg
|
grub-install --target=x86_64-efi --bootloader-id=GRUB --efi-directory=/boot/efi
|
||||||
|
grub-mkconfig -o /boot/grub/grub.cfg
|
||||||
grub-install /dev/sda
|
else
|
||||||
|
grub-install $(cat /proc/mounts|grep btrfs |grep ' / '|head -n 1|cut -f 1 -d ' ')
|
||||||
grub-mkconfig -o /boot/grub/grub.cfg
|
grub-mkconfig -o /boot/grub/grub.cfg
|
||||||
|
fi
|
||||||
|
|
||||||
systemctl enable lightdm
|
systemctl enable lightdm
|
||||||
|
systemctl enable NetworkManager.service
|
||||||
|
systemctl enable systemd-resolved
|
||||||
|
|
||||||
cd /opt
|
cd /opt
|
||||||
|
|
||||||
@ -46,6 +51,4 @@ echo "blue ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
|
|||||||
|
|
||||||
sudo -u blue makepkg -si
|
sudo -u blue makepkg -si
|
||||||
|
|
||||||
exit
|
exit
|
||||||
|
|
||||||
reboot
|
|
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
pacman -Syy
|
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
|
genfstab -U /mnt >> /mnt/etc/fstab
|
||||||
|
Loading…
Reference in New Issue
Block a user