diff --git a/modules/system/boot/stage-2-init.sh b/modules/system/boot/stage-2-init.sh index e8b3a403020..8df7eba5d78 100644 --- a/modules/system/boot/stage-2-init.sh +++ b/modules/system/boot/stage-2-init.sh @@ -51,10 +51,8 @@ echo "booting system configuration $systemConfig" > /dev/kmsg chown 0:30000 /nix/store chmod 1775 /nix/store if [ -n "@readOnlyStore@" ]; then - if ! mountpoint -q /nix/store; then - mount --bind /nix/store /nix/store - mount -o remount,ro,bind /nix/store - fi + mount --bind /nix/store /nix/store + mount -o remount,ro,bind /nix/store fi