diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2019-11-29 22:10:46 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2019-11-29 22:10:46 +0100 |
commit | 3593125b8e57f2bae9d3b4630fd9d0dd0dd6773a (patch) | |
tree | f390355801692e66c07908f7ff8fdf6d0b73396a | |
parent | Even better (diff) | |
download | arch-installer-3593125b8e57f2bae9d3b4630fd9d0dd0dd6773a.tar.gz arch-installer-3593125b8e57f2bae9d3b4630fd9d0dd0dd6773a.tar.bz2 arch-installer-3593125b8e57f2bae9d3b4630fd9d0dd0dd6773a.tar.xz arch-installer-3593125b8e57f2bae9d3b4630fd9d0dd0dd6773a.tar.zst arch-installer-3593125b8e57f2bae9d3b4630fd9d0dd0dd6773a.zip |
It's gonna be ok
-rwxr-xr-x | arch-installer.sh | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/arch-installer.sh b/arch-installer.sh index 2601404..ed3c760 100755 --- a/arch-installer.sh +++ b/arch-installer.sh @@ -408,9 +408,9 @@ jo_fstab() { sleep 2 } -jo_arch_chroot() { - arch-chroot /mnt/arch ${@:1} -} +#jo_arch_chroot() { +# arch-chroot /mnt/arch ${@:1} +#} #==================================================================================================# #--------------------------------------------- START ----------------------------------------------# #==================================================================================================# @@ -542,22 +542,22 @@ arch-chroot /mnt/arch systemctl enable NetworkManager arch-chroot /mnt/arch sed -i 's/#ForwardToSyslog=no/ForwardToSyslog=yes/' /etc/systemd/journald.conf if [ "$isusr" = true ]; then if [ "$isusrsudo" = true ]; then - arch-chroot /mnt/arch useradd -m -g wheel -s /bin/$usrshell $usr + arch-chroot /mnt/arch useradd -m -g wheel -s /bin/"$usrshell" "$usr" arch-chroot /mnt/arch sed -i 's/# %wheel ALL=(ALL) ALL/%wheel ALL=(ALL) ALL/' /etc/sudoers else - arch-chroot /mnt/arch useradd -m -s /bin/$usrshell $usr + arch-chroot /mnt/arch useradd -m -s /bin/"$usrshell" "$usr" fi - arch-chroot /mnt/arch passwd $usr <<JO_USR_PWD + arch-chroot /mnt/arch passwd "$usr" <<JO_USR_PWD $usrpwd $usrpwd JO_USR_PWD fi -if [ $ltskern = false ]; then +if [ "$ltskern" = false ]; then arch-chroot /mnt/arch mkinitcpio -p linux else arch-chroot /mnt/arch mkinitcpio -p linux-lts fi -if [ $efimode = true ]; then +if [ "$efimode" = true ]; then 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 @@ -566,7 +566,7 @@ if [ $efimode = true ]; then 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 - arch-chroot /mnt/arch grub-install --target=i386-pc $drv + 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"\ |