[Nix-dev] read-only store on its own filesystem

Mathijs Kwik mathijs at bluescreen303.nl
Sun Mar 3 21:30:24 CET 2013


Hi all,

I have my /nix/store on a separate filesystem.
It seems that because of this, the new read-only store functionality
does not work.

In stage-2-init.sh (line 53):
if [ -n "@readOnlyStore@" ]; then
    if ! mountpoint -q /nix/store; then
        mount --bind /nix/store /nix/store
        mount -o remount,ro,bind /nix/store
    fi
fi


mountpoint -q will return successfully in my case and skip setting up
the read-only stuff.

Why is this check there?
Is there a reason not to use this functionality when a mountpoint (store
on other fs) is detected?

Thanks,
Mathijs


More information about the nix-dev mailing list