mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-11 05:17:44 +03:00
Merge pull request #19837 from keszybz/disable-more-units
Disable more units
This commit is contained in:
commit
0718266017
@ -675,6 +675,11 @@ static int condition_test_needs_update(Condition *c, char **env) {
|
||||
if (r > 0)
|
||||
return b;
|
||||
|
||||
if (in_initrd()) {
|
||||
log_debug("We are in an initrd, not doing any updates.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!path_is_absolute(c->parameter)) {
|
||||
log_debug("Specified condition parameter '%s' is not absolute, assuming an update is needed.", c->parameter);
|
||||
return true;
|
||||
|
@ -13,6 +13,7 @@ Documentation=https://www.kernel.org/doc/html/latest/admin-guide/binfmt-misc.htm
|
||||
Documentation=https://www.freedesktop.org/wiki/Software/systemd/APIFileSystems
|
||||
DefaultDependencies=no
|
||||
Before=sysinit.target
|
||||
Conflicts=shutdown.target
|
||||
ConditionPathExists=/proc/sys/fs/binfmt_misc/
|
||||
ConditionPathIsReadWrite=/proc/sys/
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user