Use ConditionVirtualization to disable some services in containers
(cherry picked from commit c52a98380673093037a3116025d0aa92cd46a214)
This commit is contained in:
parent
cce3aa1e22
commit
65700b435c
@ -749,6 +749,10 @@ in
|
|||||||
systemd.targets.local-fs.unitConfig.X-StopOnReconfiguration = true;
|
systemd.targets.local-fs.unitConfig.X-StopOnReconfiguration = true;
|
||||||
systemd.targets.remote-fs.unitConfig.X-StopOnReconfiguration = true;
|
systemd.targets.remote-fs.unitConfig.X-StopOnReconfiguration = true;
|
||||||
|
|
||||||
|
# Don't bother with certain units in containers.
|
||||||
|
systemd.services.systemd-remount-fs.unitConfig.ConditionVirtualization = "!container";
|
||||||
|
systemd.services.systemd-random-seed.unitConfig.ConditionVirtualization = "!container";
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -19,10 +19,6 @@ with lib;
|
|||||||
# Shut up warnings about not having a boot loader.
|
# Shut up warnings about not having a boot loader.
|
||||||
system.build.installBootLoader = "${pkgs.coreutils}/bin/true";
|
system.build.installBootLoader = "${pkgs.coreutils}/bin/true";
|
||||||
|
|
||||||
systemd.services.systemd-remount-fs.enable = false;
|
|
||||||
|
|
||||||
systemd.services.systemd-random-seed.enable = false;
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user