nixpkgs/nixos/modules/system
nikstur d85abd2764 nixos/systemd-repart: definition files in initrd
Store the definition files in the initrd instead of reading them from
the Nix store in /sysroot.

This way, the initrd has to be re-generated every time the definition
files change. When the path to the defintion files instead of the
definition files themselves are embedded in the initrd, however, the
initrd also has to be re-generated every time. In this regard, this
change does not improve the status quo.

However, now systemd-repart also works reliable when the Nix store is
mounted separately from the root partition.

This change also enables new use-cases like creating partitions
necessary to boot the system. However, by default, the root partition
cannot be created on first boot because the systemd-repart service
requires a /sysroot to be mounted. Otherwise, systemd-repart cannot
determine the device to operate on.
2023-05-09 00:11:21 +02:00
..
activation nixos/bootspec: Fix cross for nixos-system systemBuilder 2023-05-04 20:09:16 -07:00
boot nixos/systemd-repart: definition files in initrd 2023-05-09 00:11:21 +02:00
etc nixos/etc: skip resolv.conf in nixos-enter chroot 2023-01-02 01:41:29 +01:00
build.nix treewide: automatically md-convert option descriptions 2022-07-30 15:16:34 +02:00