summaryrefslogtreecommitdiffstats
path: root/src/core/main.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-07-01 21:18:41 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-07-01 22:07:23 +0200
commitbffde9b5869fffc09e7824d2ac0aeb82a31a134b (patch)
tree6d92693358ec8684a03bf1aa13ff76cea97f7ac8 /src/core/main.c
parentbuild(deps): bump meson from 0.62.0 to 0.62.2 in /.github/workflows (diff)
downloadsystemd-bffde9b5869fffc09e7824d2ac0aeb82a31a134b.tar.xz
systemd-bffde9b5869fffc09e7824d2ac0aeb82a31a134b.zip
core: do not filter out systemd.unit= and run-level specifier from kernel command line
Fixes a bug introduced by 846f1da465beda990c1c01346311393f485df467. The commit 846f1da465beda990c1c01346311393f485df467 made systemd.unit= filtered out from the command line. That causes debug-generator does not work as expected on daemon-reexecute, and we cannot call `systemctl daemon-reexecute` in our test suite running on nspawn. Fixes issue reported in https://github.com/systemd/systemd/pull/23851#issuecomment-1170992052.
Diffstat (limited to '')
-rw-r--r--src/core/main.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/core/main.c b/src/core/main.c
index 7cd13b9e13..94c757e21e 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -1721,13 +1721,6 @@ static void filter_args(
continue;
}
- if (startswith(src[i],
- in_initrd() ? "rd.systemd.unit=" : "systemd.unit="))
- continue;
-
- if (runlevel_to_target(src[i]))
- continue;
-
/* Seems we have a good old option. Let's pass it over to the new instance. */
dst[(*dst_index)++] = src[i];
}