From 1881aa98dc4b7eeed1fec72b17995328c3d6e427 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Fri, 29 Nov 2019 22:27:35 +0100 Subject: Muted arch-chroot step --- arch-installer.sh | 94 +++++++++++++++++++++++++++---------------------------- 1 file changed, 47 insertions(+), 47 deletions(-) diff --git a/arch-installer.sh b/arch-installer.sh index ed3c760..8de7a84 100755 --- a/arch-installer.sh +++ b/arch-installer.sh @@ -408,9 +408,52 @@ jo_fstab() { sleep 2 } -#jo_arch_chroot() { -# arch-chroot /mnt/arch ${@:1} -#} +jo_arch_chroot() { + 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 + arch-chroot /mnt/arch echo "exit" >> /boot/efi/startup.nsh + else + arch-chroot /mnt/arch grub-install --target=i386-pc "$drv" + arch-chroot /mnt/arch grub-mkconfig -o /boot/grub/grub.cfg + fi +} #==================================================================================================# #--------------------------------------------- START ----------------------------------------------# #==================================================================================================# @@ -524,51 +567,8 @@ jo_fstab "IV. INSTALLING LINUX" dialog --title "V. CONFIGURING LINUX"\ --infobox "Finishing configuration"\ 3 30 +jo_arch_chroot > /dev/null 2>&1 sleep 4 -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 - arch-chroot /mnt/arch echo "exit" >> /boot/efi/startup.nsh -else - 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 "\ Arch Linux is now installed\n\ -- cgit v1.2.3