Fix chroot setup script

This commit is contained in:
Manuel 2023-07-06 08:22:20 +02:00
parent 310039dbd8
commit 25fff397b1
Signed by: Manuel
GPG key ID: 4085037435E1F07A

View file

@ -9,6 +9,7 @@ sudo -v || exit 1
arch-nspawn "$CHROOT/root" pacman -Syu arch-nspawn "$CHROOT/root" pacman -Syu
mkdir -p -m 0755 "$CHROOT/$USER" mkdir -p -m 0755 "$CHROOT/$USER"
[ ! $(mountpoint -q "$CHROOT/$USER") ] && sudo mount -t tmpfs -o defaults,nodev,mode=0755,uid=$(id -u),gid=$(id -g) tmpfs "$CHROOT/$USER" mountpoint -q "$CHROOT/$USER"
test $? -ne 0 && sudo mount -t tmpfs -o defaults,nodev,mode=0755,uid=$(id -u),gid=$(id -g) tmpfs "$CHROOT/$USER"
exit 0 exit 0