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

Eelco Dolstra eelco.dolstra at logicblox.com
Mon Mar 4 18:45:17 CET 2013


Hi,

On 03/03/13 21:30, Mathijs Kwik wrote:

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

I can't remember why I wrote that line.  So feel free to remove it.

-- 
Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/


More information about the nix-dev mailing list