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