Update chroot setup script and add makepkg.conf
This commit is contained in:
parent
e7fc2abcdd
commit
c21344130c
2 changed files with 169 additions and 2 deletions
|
@ -4,10 +4,11 @@
|
|||
|
||||
sudo -v || exit 1
|
||||
|
||||
[ ! -d "$CHROOT/root" ] && sudo mkarchroot -M "$(dirname "$0")"/makepkg.conf "$CHROOT/root" base-devel
|
||||
|
||||
arch-nspawn "$CHROOT/root" pacman -Syu
|
||||
mkdir -p -m 0755 "$CHROOT/$USER"
|
||||
|
||||
mountpoint -q "$CHROOT/$USER"
|
||||
[ $? -gt 0 ] && sudo mount -t tmpfs -o defaults,nodev,mode=0755,uid=$(id -u),gid=$(id -g) tmpfs "$CHROOT/$USER"
|
||||
[ ! $(mountpoint -q "$CHROOT/$USER") ] && sudo mount -t tmpfs -o defaults,nodev,mode=0755,uid=$(id -u),gid=$(id -g) tmpfs "$CHROOT/$USER"
|
||||
|
||||
exit 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue