b9680ab712
- Make sosreport work by setting the HOST environment variable - Related: #2000051 Signed-off-by: Jindrich Novy <jnovy@redhat.com>
27 lines
738 B
Diff
27 lines
738 B
Diff
From 786c5065c73703ef46e13905a4672f1b4918310a Mon Sep 17 00:00:00 2001
|
|
From: Debarshi Ray <rishi@fedoraproject.org>
|
|
Date: Wed, 18 Aug 2021 17:55:21 +0200
|
|
Subject: [PATCH] cmd/run: Make sosreport work by setting the HOST environment
|
|
variable
|
|
|
|
https://bugzilla.redhat.com/show_bug.cgi?id=1940037
|
|
---
|
|
src/cmd/run.go | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/src/cmd/run.go b/src/cmd/run.go
|
|
index e8e96932415e..188f0f2394df 100644
|
|
--- a/src/cmd/run.go
|
|
+++ b/src/cmd/run.go
|
|
@@ -443,6 +443,7 @@ func constructExecArgs(container string,
|
|
execArgs = append(execArgs, detachKeys...)
|
|
|
|
execArgs = append(execArgs, []string{
|
|
+ "--env", "HOST=/run/host",
|
|
"--interactive",
|
|
"--tty",
|
|
"--user", currentUser.Username,
|
|
--
|
|
2.31.1
|
|
|