From cb63fac1c8ad3fe9f1f1470d6754b5ff57d90703 Mon Sep 17 00:00:00 2001 From: awy Date: Wed, 21 Aug 2024 14:04:47 +0300 Subject: zsh --- install.sh | 4 ++-- post_chroot.sh | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 8107b30..0c78358 100755 --- a/install.sh +++ b/install.sh @@ -48,8 +48,8 @@ elif [ "$_kernelflag" -eq 2 ]; then rc-service ntpd start pacman -Sy --confirm basestrap /mnt base openrc seatd-openrc udev intel-ucode - echo "UUID=$UUID_BOOT /boot vfat defaults,noatime 0 2 - UUID=$UUID_ROOT / ext4 defaults,noatime 0 1" > /mnt/etc/fstab + echo "UUID=$UUID_BOOT /boot vfat defaults,noatime 0 2" > /mnt/etc/fstab + echo "UUID=$UUID_ROOT / ext4 defaults,noatime 0 1" >> /mnt/etc/fstab cp post_chroot.sh /mnt else printf ${LIGHTRED}"Wrong kernelflag value.${NoColor}\n" diff --git a/post_chroot.sh b/post_chroot.sh index 7725289..de5ec2a 100755 --- a/post_chroot.sh +++ b/post_chroot.sh @@ -80,7 +80,7 @@ if [ "$_kernelflag" -eq 1 ]; then fi # use dash as sh -pacman -Sy dash +pacman -Sy dash zsh ln -sfT dash /usr/bin/sh mkdir -p /etc/pacman.d/hooks cat <> /etc/pacman.d/hooks/bash.hook @@ -97,4 +97,6 @@ Exec = /usr/bin/ln -sfT dash /usr/bin/sh Depends = dash EOL +chsh -s /bin/zsh $_username + rm /post_chroot.sh -- cgit v1.2.3