aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xinstall.sh4
-rwxr-xr-xpost_chroot.sh4
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 <<EOL >> /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