Fix chroot setup script
This commit is contained in:
parent
310039dbd8
commit
25fff397b1
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue