Skip to content

Commit d4e4d27

Browse files
arianvpajs124
authored andcommitted
systemd: move systemd-tmpfiles-setup-dev.service back to early boot
It was originally moved because of nixops autoLuks feature which has been unsupported for a while. See: * #62211 * NixOS/nixops#1156 (comment) systemd-tmpfiles-setup-dev.service needs to run very early (even before udev runs) because udev rules assume static device nodes already exist even before udev is started. If these static device nodes do not exist; systemd might have trouble mounting filesystems that require static device nodes (like loopfs and btrfs).
1 parent 32e30e8 commit d4e4d27

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

pkgs/os-specific/linux/systemd/default.nix

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -575,12 +575,6 @@ stdenv.mkDerivation {
575575
'';
576576

577577
postInstall = ''
578-
# sysinit.target: Don't depend on
579-
# systemd-tmpfiles-setup.service. This interferes with NixOps's
580-
# send-keys feature (since sshd.service depends indirectly on
581-
# sysinit.target).
582-
mv $out/lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup-dev.service $out/lib/systemd/system/multi-user.target.wants/
583-
584578
mkdir -p $out/example/systemd
585579
mv $out/lib/{modules-load.d,binfmt.d,sysctl.d,tmpfiles.d} $out/example
586580
mv $out/lib/systemd/{system,user} $out/example/systemd

0 commit comments

Comments
 (0)