mirror of
https://github.com/systemd/systemd.git
synced 2026-08-03 22:50:29 +00:00
vmspawn: fix finding systemd-journal-remote binary
Follow-up for 258d26940f.
Fixes https://github.com/systemd/systemd/pull/31218#discussion_r1596168449.
This commit is contained in:
@@ -1923,7 +1923,15 @@ static int run_virtual_machine(int kvm_device_fd, int vhost_device_fd) {
|
||||
|
||||
if (arg_forward_journal) {
|
||||
_cleanup_free_ char *sd_journal_remote = NULL, *listen_address = NULL, *cred = NULL;
|
||||
r = find_executable("systemd-journal-remote", &sd_journal_remote);
|
||||
|
||||
r = find_executable_full(
|
||||
"systemd-journal-remote",
|
||||
/* root = */ NULL,
|
||||
STRV_MAKE(LIBEXECDIR),
|
||||
/* use_path_envvar = */ true, /* systemd-journal-remote should be installed in
|
||||
* LIBEXECDIR, but for supporting fancy setups. */
|
||||
&sd_journal_remote,
|
||||
/* ret_fd = */ NULL);
|
||||
if (r < 0)
|
||||
return log_error_errno(r, "Failed to find systemd-journal-remote binary: %m");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user