Use ‘mountpoint -q’

This commit is contained in:
Eelco Dolstra 2012-10-02 10:32:56 -04:00
parent 2044ae785d
commit 666620cdd5

View File

@ -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