3
0
Fork 0
forked from mirrors/nixpkgs

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:
Дамјан Георгиевски 2023-03-05 04:38:58 +01:00
parent f7ce1d22eb
commit d2837a9cb3

View file

@ -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;