Fix chroot setup script

This commit is contained in:
Manuel 2023-07-06 08:22:20 +02:00
parent 310039dbd8
commit 25fff397b1
Signed by: SunRed
GPG Key ID: 4085037435E1F07A
1 changed files with 2 additions and 1 deletions

View File

@ -9,6 +9,7 @@ sudo -v || exit 1
arch-nspawn "$CHROOT/root" pacman -Syu
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