diff options
author | Astro <astro@spaceboyz.net> | 2023-11-28 12:01:05 +0100 |
---|---|---|
committer | Astro <astro@spaceboyz.net> | 2024-02-27 22:41:45 +0100 |
commit | 6fbf631a7b289971653939dabe9924d1a4ee660e (patch) | |
tree | 5d026e9250830917fca6b991e9b39f8fc7ea138d /nixos/modules/installer | |
parent | 13aff9b34cc32e59d35c62ac9356e4a41198a538 (diff) | |
download | nixlib-6fbf631a7b289971653939dabe9924d1a4ee660e.tar nixlib-6fbf631a7b289971653939dabe9924d1a4ee660e.tar.gz nixlib-6fbf631a7b289971653939dabe9924d1a4ee660e.tar.bz2 nixlib-6fbf631a7b289971653939dabe9924d1a4ee660e.tar.lz nixlib-6fbf631a7b289971653939dabe9924d1a4ee660e.tar.xz nixlib-6fbf631a7b289971653939dabe9924d1a4ee660e.tar.zst nixlib-6fbf631a7b289971653939dabe9924d1a4ee660e.zip |
nixos netboot: prepend systemd initrd sysroot for store overlay
Diffstat (limited to 'nixos/modules/installer')
-rw-r--r-- | nixos/modules/installer/netboot/netboot.nix | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/nixos/modules/installer/netboot/netboot.nix b/nixos/modules/installer/netboot/netboot.nix index a50f22cbe471..028a2d74041e 100644 --- a/nixos/modules/installer/netboot/netboot.nix +++ b/nixos/modules/installer/netboot/netboot.nix @@ -62,19 +62,12 @@ with lib; }; fileSystems."/nix/store" = mkImageMediaOverride - { fsType = "overlay"; - device = "overlay"; - options = [ - "lowerdir=/nix/.ro-store" - "upperdir=/nix/.rw-store/store" - "workdir=/nix/.rw-store/work" - ]; - - depends = [ - "/nix/.ro-store" - "/nix/.rw-store/store" - "/nix/.rw-store/work" - ]; + { overlay = { + lowerdir = [ "/nix/.ro-store" ]; + upperdir = "/nix/.rw-store/store"; + workdir = "/nix/.rw-store/work"; + }; + neededForBoot = true; }; boot.initrd.availableKernelModules = [ "squashfs" "overlay" ]; |