aboutsummaryrefslogtreecommitdiffstats
path: root/sos.spec
diff options
context:
space:
mode:
authorEtienne Champetier <e.champetier@ateme.com>2024-04-24 09:54:09 -0400
committerArif Ali <arif-ali@users.noreply.github.com>2024-04-26 09:24:27 +0100
commit3a0c73d33ad40b2ed5bfb675925b1aae5edf29a3 (patch)
tree065462e70217bb8f079fcc3c72021283bf3bc218 /sos.spec
parentd8dc8c7730627ca756b00ffaa8b71225a3ac6e04 (diff)
downloadsos-3a0c73d33ad40b2ed5bfb675925b1aae5edf29a3.tar.gz
[dracut] avoid 100s delay with rpm-ostree cliwrap
When calling dracut on an rpm-ostree based system with cliwrap enabled you get the following message: ``` This system is rpm-ostree based; initramfs handling is integrated with the underlying ostree transaction mechanism. Use `rpm-ostree initramfs` to control client-side initramfs generation. rpm-ostree: Note: This system is image (rpm-ostree) based. rpm-ostree: Dropping privileges as `dracut` was executed with not "known safe" arguments. rpm-ostree: You may invoke the real `dracut` binary in `/usr/libexec/rpm-ostree/wrapped/dracut`. rpm-ostree: Continuing execution in 5 seconds. ``` Calling `/usr/libexec/rpm-ostree/wrapped/dracut --print-cmdline` is still slow because it calls rpm multiple times which is also a wrapped cli. Call dracut with the env variable RPMOSTREE_CLIWRAP_SKIP to avoid the 5s waits. This is safe because we only use read only commands. With rpm-ostree v2024.4 `rpm --eval` is marked as safe, so we don't have the 5s wait anymore for rpm calls (https://github.com/coreos/rpm-ostree/pull/4835) Resolves: RHEL-33703 Signed-off-by: Etienne Champetier <e.champetier@ateme.com>
Diffstat (limited to 'sos.spec')
0 files changed, 0 insertions, 0 deletions