From dce8e40e6504eefc25dd8dea2d81f807391fbefc Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Wed, 14 Jul 2021 14:30:35 +0200 Subject: [PATCH] Use zsh when chrooting --- root/usr/local/bin/arch-chroot | 6 +++--- root/usr/local/bin/gentoo-chroot | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/root/usr/local/bin/arch-chroot b/root/usr/local/bin/arch-chroot index 77accbf..403592d 100755 --- a/root/usr/local/bin/arch-chroot +++ b/root/usr/local/bin/arch-chroot @@ -6,7 +6,7 @@ if [ "$EUID" -ne 0 ]; then fi # Make sure the partition is mounted according to fstab -mount /mnt/arch +mount /mnt/arch 2> /dev/null # Mount necessary directories for chroot to be possible mount --types proc /proc /mnt/arch/proc @@ -15,8 +15,8 @@ mount --make-rslave /mnt/arch/sys mount --rbind /dev /mnt/arch/dev mount --make-rslave /mnt/arch/dev -# Chroot with bash shell -chroot /mnt/arch /bin/bash +# Chroot with zsh shell +chroot /mnt/arch /bin/zsh --login # Unmount recursively mounted directories umount -l /mnt/arch/dev{/shm,/pts,} diff --git a/root/usr/local/bin/gentoo-chroot b/root/usr/local/bin/gentoo-chroot index fa903f6..3d301f9 100755 --- a/root/usr/local/bin/gentoo-chroot +++ b/root/usr/local/bin/gentoo-chroot @@ -10,8 +10,8 @@ mount --make-rslave /mnt/gentoo/sys mount --rbind /dev /mnt/gentoo/dev mount --make-rslave /mnt/gentoo/dev -# Chroot with bash shell -chroot /mnt/gentoo /bin/bash +# Chroot with zsh shell +chroot /mnt/gentoo /bin/zsh --login # Unmount recursively mounted directories umount -l /mnt/gentoo/dev{/shm,/pts,}