From d2837a9cb3d11187e12db193becffe4cb7c8d1ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B0=D0=BC=D1=98=D0=B0=D0=BD=20=D0=93=D0=B5=D0=BE?= =?UTF-8?q?=D1=80=D0=B3=D0=B8=D0=B5=D0=B2=D1=81=D0=BA=D0=B8?= Date: Sun, 5 Mar 2023 04:38:58 +0100 Subject: [PATCH] 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 ``` --- nixos/modules/system/boot/systemd/initrd.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/system/boot/systemd/initrd.nix b/nixos/modules/system/boot/systemd/initrd.nix index f937581b76f6f..1ec4607146916 100644 --- a/nixos/modules/system/boot/systemd/initrd.nix +++ b/nixos/modules/system/boot/systemd/initrd.nix @@ -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;