From: Ladislav Michl Date: Sun, 2 Feb 2020 09:45:04 +0100 Subject: [PATCH] SConscript: Use 'target' option to decide whenewer to restart systemd Signed-off-by: Ladislav Michl --- SConscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SConscript b/SConscript index dc7a5c997357..e090a3a22e24 100644 --- a/SConscript +++ b/SConscript @@ -3102,7 +3102,7 @@ udev_install = Utility('udev-install', 'install', [ if env['systemd']: env.Requires(udev_install, systemd_install) - if not env["sysroot"]: + if not env['target']: systemctl_daemon_reload = Utility('systemctl-daemon-reload', '', ['systemctl daemon-reload || true']) env.AlwaysBuild(systemctl_daemon_reload)