From 666620cdd50a1af57aa9b40faea2bcd828b3281c Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 2 Oct 2012 10:32:56 -0400 Subject: [PATCH] =?UTF-8?q?Use=20=E2=80=98mountpoint=20-q=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/system/boot/stage-2-init.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/system/boot/stage-2-init.sh b/modules/system/boot/stage-2-init.sh index 55e61ffb69a..f54404ddcce 100644 --- a/modules/system/boot/stage-2-init.sh +++ b/modules/system/boot/stage-2-init.sh @@ -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