Update create-arch-bootstrap.sh

This commit is contained in:
Kron4ek 2021-05-28 01:07:34 +05:00 committed by GitHub
parent edc3f5d938
commit 844f53e0cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,12 +16,13 @@ mount_chroot () {
umount -Rl "${bootstrap}" umount -Rl "${bootstrap}"
mount --bind "${bootstrap}" "${bootstrap}" mount --bind "${bootstrap}" "${bootstrap}"
mount --bind /dev "${bootstrap}"/dev mount -t proc /proc "${bootstrap}"/proc
mount --bind /dev/shm "${bootstrap}"/dev/shm mount --make-rslave --rbind /sys "${bootstrap}"/sys
mount --bind /dev/pts "${bootstrap}"/dev/pts mount --make-rslave --rbind /dev "${bootstrap}"/dev
mount --bind /proc "${bootstrap}"/proc mount --make-rslave --rbind /run "${bootstrap}"/run
mount --bind /sys "${bootstrap}"/sys
mount --bind /etc/resolv.conf "${bootstrap}"/etc/resolv.conf rm -f "${bootstrap}"/etc/resolv.conf
cp /etc/resolv.conf "${bootstrap}"/etc/resolv.conf
} }
unmount_chroot () { unmount_chroot () {
@ -142,7 +143,7 @@ if [ -n "${chaotic_packagelist}" ]; then
run_in_chroot pacman -Syu --noconfirm run_in_chroot pacman -Syu --noconfirm
run_in_chroot bash -c "yes | pacman --needed -S ${chaotic_packagelist}" run_in_chroot pacman --noconfirm --needed -S ${chaotic_packagelist}
fi fi
run_in_chroot locale-gen run_in_chroot locale-gen