mirror of
https://github.com/Kron4ek/Conty
synced 2024-12-27 09:58:25 +01:00
Update create-arch-bootstrap.sh
This commit is contained in:
parent
edc3f5d938
commit
844f53e0cc
1 changed files with 8 additions and 7 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue