mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
core: do not filter out systemd.unit= and run-level specifier from kernel command line
Fixes a bug introduced by846f1da465. The commit846f1da465made 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.
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user