mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
nixos/systemd-initrd: create the /tmp mount point in the initrd
systemd now requires the /tmp mount point in the initrd cpio archive since https://github.com/systemd/systemd/pull/25723 setting `"/tmp/.keep".text` will create the directory. this fixes a boot failure: ``` (sd-gens): Failed to overmount /tmp/: No such file or directory ```
This commit is contained in:
parent
f7ce1d22eb
commit
d2837a9cb3
1 changed files with 1 additions and 0 deletions
|
@ -371,6 +371,7 @@ in {
|
|||
managerEnvironment.PATH = "/bin:/sbin";
|
||||
|
||||
contents = {
|
||||
"/tmp/.keep".text = "systemd requires the /tmp mount point in the initrd cpio archive";
|
||||
"/init".source = "${cfg.package}/lib/systemd/systemd";
|
||||
"/etc/systemd/system".source = stage1Units;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue