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}"
mount --bind "${bootstrap}" "${bootstrap}"
mount --bind /dev "${bootstrap}"/dev
mount --bind /dev/shm "${bootstrap}"/dev/shm
mount --bind /dev/pts "${bootstrap}"/dev/pts
mount --bind /proc "${bootstrap}"/proc
mount --bind /sys "${bootstrap}"/sys
mount --bind /etc/resolv.conf "${bootstrap}"/etc/resolv.conf
mount -t proc /proc "${bootstrap}"/proc
mount --make-rslave --rbind /sys "${bootstrap}"/sys
mount --make-rslave --rbind /dev "${bootstrap}"/dev
mount --make-rslave --rbind /run "${bootstrap}"/run
rm -f "${bootstrap}"/etc/resolv.conf
cp /etc/resolv.conf "${bootstrap}"/etc/resolv.conf
}
unmount_chroot () {
@ -142,7 +143,7 @@ if [ -n "${chaotic_packagelist}" ]; then
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
run_in_chroot locale-gen