| 24 Mar 2025 |
p14 | Thanks for the hint; could this explain the oddity I'm seeing?
Essentially, I have a ro store, that I mount at /nix/rostore, and then a writable partition I mount at /. I want to make /nix/store be an overlayfs with /nix/store (on the writable partition) with the rostore as the lower layer. I have something that works, but then the /nix/store directory appears empty if you try to list the files in it. Directly opening the paths is fine.
I can't figure out why I can't get a sane overlayfs mount..
| 18:53:14 |
@elvishjerricco:matrix.org | p14: the quickest guidance I can think of is that I did this for the ISO here: https://github.com/NixOS/nixpkgs/pull/291750 | 18:54:14 |
p14 | Essentially I'm trying to do something like https://github.com/NixOS/nixpkgs/blob/8e3b25f1708783d02963efe47222adb0a8e6f4f7/nixos/modules/installer/cd-dvd/iso-image.nix#L813 | 18:54:17 |
p14 | Oh cool, will definitely unpack taht | 18:54:36 |
@elvishjerricco:matrix.org | p14: oh, actually, I forgot it was already basically correct in the ISO | 18:55:05 |
@elvishjerricco:matrix.org | what's wrong with doing it the way the ISO does it already? | 18:55:15 |
p14 | I guess one difference there is that / is tmpfs | 18:55:19 |
p14 | I don't want / as tmpfs | 18:55:22 |
@elvishjerricco:matrix.org | that doesn't really matter | 18:55:29 |
p14 | Well, OK, but then if I try to do what I perceive to be the obvious thing, I end up with this weird thing which doesn't quite work properly | 18:55:50 |