read-only-store functionality should apply even when /nix/store is on a separate filesystem
This commit is contained in:
@@ -51,10 +51,8 @@ echo "booting system configuration $systemConfig" > /dev/kmsg
|
|||||||
chown 0:30000 /nix/store
|
chown 0:30000 /nix/store
|
||||||
chmod 1775 /nix/store
|
chmod 1775 /nix/store
|
||||||
if [ -n "@readOnlyStore@" ]; then
|
if [ -n "@readOnlyStore@" ]; then
|
||||||
if ! mountpoint -q /nix/store; then
|
mount --bind /nix/store /nix/store
|
||||||
mount --bind /nix/store /nix/store
|
mount -o remount,ro,bind /nix/store
|
||||||
mount -o remount,ro,bind /nix/store
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user