read-only-store functionality should apply even when /nix/store is on a separate filesystem

This commit is contained in:
Mathijs Kwik 2013-03-04 19:05:07 +01:00
parent 134750f6ac
commit 09680dec6a

View file

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