mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-12-27 05:34:35 +00:00
Use zsh when chrooting
This commit is contained in:
parent
dde5730647
commit
dce8e40e65
|
@ -6,7 +6,7 @@ if [ "$EUID" -ne 0 ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Make sure the partition is mounted according to fstab
|
# 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 necessary directories for chroot to be possible
|
||||||
mount --types proc /proc /mnt/arch/proc
|
mount --types proc /proc /mnt/arch/proc
|
||||||
|
@ -15,8 +15,8 @@ mount --make-rslave /mnt/arch/sys
|
||||||
mount --rbind /dev /mnt/arch/dev
|
mount --rbind /dev /mnt/arch/dev
|
||||||
mount --make-rslave /mnt/arch/dev
|
mount --make-rslave /mnt/arch/dev
|
||||||
|
|
||||||
# Chroot with bash shell
|
# Chroot with zsh shell
|
||||||
chroot /mnt/arch /bin/bash
|
chroot /mnt/arch /bin/zsh --login
|
||||||
|
|
||||||
# Unmount recursively mounted directories
|
# Unmount recursively mounted directories
|
||||||
umount -l /mnt/arch/dev{/shm,/pts,}
|
umount -l /mnt/arch/dev{/shm,/pts,}
|
||||||
|
|
|
@ -10,8 +10,8 @@ mount --make-rslave /mnt/gentoo/sys
|
||||||
mount --rbind /dev /mnt/gentoo/dev
|
mount --rbind /dev /mnt/gentoo/dev
|
||||||
mount --make-rslave /mnt/gentoo/dev
|
mount --make-rslave /mnt/gentoo/dev
|
||||||
|
|
||||||
# Chroot with bash shell
|
# Chroot with zsh shell
|
||||||
chroot /mnt/gentoo /bin/bash
|
chroot /mnt/gentoo /bin/zsh --login
|
||||||
|
|
||||||
# Unmount recursively mounted directories
|
# Unmount recursively mounted directories
|
||||||
umount -l /mnt/gentoo/dev{/shm,/pts,}
|
umount -l /mnt/gentoo/dev{/shm,/pts,}
|
||||||
|
|
Loading…
Reference in a new issue