From 84d2d515763adcd921e4ff4a5d1883d8cb62228d Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Mon, 15 Jun 2015 12:48:35 -0400 Subject: [PATCH] postprocess: Don't use absolute paths for helpers like dracut It moved from `/usr/sbin` -> `/usr/bin`, which obviously broke rpm-ostree. No reason to hardcode absolute paths here. --- libglnx | 2 +- src/libpriv/rpmostree-postprocess.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libglnx b/libglnx index 900b25f7..91875459 160000 --- a/libglnx +++ b/libglnx @@ -1 +1 @@ -Subproject commit 900b25f7018878ab64bd04751d8f15c6d83ba823 +Subproject commit 91875459cdc9e61c2ea8c5831c7593ec7641fd2b diff --git a/src/libpriv/rpmostree-postprocess.c b/src/libpriv/rpmostree-postprocess.c index cbf064a0..ca090a72 100644 --- a/src/libpriv/rpmostree-postprocess.c +++ b/src/libpriv/rpmostree-postprocess.c @@ -320,7 +320,7 @@ do_kernel_prep (GFile *yumroot, { char *child_argv[] = { "depmod", (char*)kver, NULL }; - if (!run_sync_in_root (yumroot, "/usr/sbin/depmod", child_argv, error)) + if (!run_sync_in_root (yumroot, "depmod", child_argv, error)) goto out; } @@ -368,7 +368,7 @@ do_kernel_prep (GFile *yumroot, g_ptr_array_add (dracut_argv, NULL); - if (!run_sync_in_root (yumroot, "/usr/sbin/dracut", (char**)dracut_argv->pdata, error)) + if (!run_sync_in_root (yumroot, "dracut", (char**)dracut_argv->pdata, error)) goto out; }