From 2effe45de3e6eb363b5e3e8c9cdfcab8ac16c2bb Mon Sep 17 00:00:00 2001 From: Joe Date: Fri, 29 Nov 2019 21:59:14 +0100 Subject: Even better --- arch-installer.sh | 53 ++++++++++++++++++++++++++--------------------------- 1 file changed, 26 insertions(+), 27 deletions(-) diff --git a/arch-installer.sh b/arch-installer.sh index 7d7fa6b..2601404 100755 --- a/arch-installer.sh +++ b/arch-installer.sh @@ -409,7 +409,7 @@ jo_fstab() { } jo_arch_chroot() { -arch-chroot /mnt/arch ${@:1} + arch-chroot /mnt/arch ${@:1} } #==================================================================================================# #--------------------------------------------- START ----------------------------------------------# @@ -525,28 +525,27 @@ dialog --title "V. CONFIGURING LINUX"\ --infobox "Finishing configuration"\ 3 30 sleep 4 -jo_arch_chroot ln -sf /usr/share/zoneinfo/Europe/Paris /etc/localtime -jo_arch_chroot hwclock --systohc -jo_arch_chroot sed -i 's/#en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen -jo_arch_chroot locale-gen -jo_arch_chroot echo "LANG=en_US.UTF-8" > /etc/locale.conf -jo_arch_chroot echo "$hstnm" > /etc/hostname -jo_arch_chroot echo "127.0.0.1 localhost" > /etc/hosts -jo_arch_chroot echo "::1 localhost" >> /etc/hosts -jo_arch_chroot echo "127.0.1.1 $hstnm.localdomain $hstnm" >> /etc/hosts +arch-chroot /mnt/arch ln -sf /usr/share/zoneinfo/Europe/Paris /etc/localtime +arch-chroot /mnt/arch hwclock --systohc +arch-chroot /mnt/arch sed -i 's/#en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen +arch-chroot /mnt/arch locale-gen +arch-chroot /mnt/arch echo "LANG=en_US.UTF-8" > /etc/locale.conf +arch-chroot /mnt/arch echo "$hstnm" > /etc/hostname +arch-chroot /mnt/arch echo "127.0.0.1 localhost" > /etc/hosts +arch-chroot /mnt/arch echo "::1 localhost" >> /etc/hosts +arch-chroot /mnt/arch echo "127.0.1.1 $hstnm.localdomain $hstnm" >> /etc/hosts arch-chroot /mnt/arch passwd < /boot/efi/startup.nsh - jo_arch_chroot echo "exit" >> /boot/efi/startup.nsh + arch-chroot /mnt/arch grub-install --target=x86_64-efi --bootloader-id=GRUB --efi-directory=/boot/efi --recheck + arch-chroot /mnt/arch mkdir -p /boot/grub + arch-chroot /mnt/arch grub-mkconfig -o /boot/grub/grub.cfg + arch-chroot /mnt/arch mkdir -p /boot/efi/EFI/BOOT + arch-chroot /mnt/arch cp /boot/efi/EFI/GRUB/grubx64.efi /boot/efi/EFI/BOOT/BOOTX64.EFI + arch-chroot /mnt/arch echo "bcf boot add 1 fs0:\\EFI\\GRUB\\grubx64.efi \"GRUB bootloader\"" > /boot/efi/startup.nsh + arch-chroot /mnt/arch echo "exit" >> /boot/efi/startup.nsh else - jo_arch_chroot grub-install --target=i386-pc $drv - jo_arch_chroot grub-mkconfig -o /boot/grub/grub.cfg + arch-chroot /mnt/arch grub-install --target=i386-pc $drv + arch-chroot /mnt/arch grub-mkconfig -o /boot/grub/grub.cfg fi dialog --title "WORK COMPLETE"\ --msgbox "\ -- cgit v1.2.3