Skip to content

Commit

Permalink
nixos/kata: pull in multi-user.target
Browse files Browse the repository at this point in the history
Previously, due to setting `systemd.unit=kata-containers.target` on the kernel command line, we didn't pull in units that are `wantedBy=multi-user.target`. This breaks many assumptions of upstream software, including those of `nvidia-persistenced.service`, which was the first component that exhibited a hard breakage upon this unfulfilled assumption. This fixes these assumptions by pulling in `multi-user.target` through `kata-containers.target`.
  • Loading branch information
msanft committed Dec 6, 2024
1 parent 223f35f commit 813dbc7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/nixos/kata.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ in
"basic.target"
"tmp.mount"
"kata-agent.service"
"multi-user.target"
];
wantedBy = [ "basic.target" ];
wants = [
Expand All @@ -35,6 +36,7 @@ in
"rescue.target"
];
after = [
"multi-user.target"
"basic.target"
"rescue.service"
"rescue.target"
Expand Down

0 comments on commit 813dbc7

Please sign in to comment.