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