Use ‘mountpoint -q’
This commit is contained in:
parent
2044ae785d
commit
666620cdd5
@ -46,7 +46,7 @@ fi
|
||||
chown root:nixbld /nix/store
|
||||
chmod 1775 /nix/store
|
||||
if [ -n "@readOnlyStore@" ]; then
|
||||
if ! mountpoint /nix/store; then
|
||||
if ! mountpoint -q /nix/store; then
|
||||
mkdir -p /nix/rw-store
|
||||
mount --bind /nix/store /nix/store
|
||||
mount -o remount,ro,bind /nix/store
|
||||
|
Loading…
x
Reference in New Issue
Block a user