summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason T. Greene <jason.greene@redhat.com>2022-02-16 00:48:02 -0600
committerMatthew Heon <matthew.heon@pm.me>2022-02-16 14:01:20 -0500
commit809da6b0ba8619bd8565a87388cf2cafad33cf99 (patch)
treefb854a90fc687cfdeb249ed2730d430016b97348
parentbd8ac0017ef61144920c305af5cc9bae6803d69b (diff)
downloadpodman-809da6b0ba8619bd8565a87388cf2cafad33cf99.tar.gz
podman-809da6b0ba8619bd8565a87388cf2cafad33cf99.tar.bz2
podman-809da6b0ba8619bd8565a87388cf2cafad33cf99.zip
Update to podman4 copr stream
Signed-off-by: Jason T. Greene <jason.greene@redhat.com>
-rw-r--r--pkg/machine/wsl/machine.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/pkg/machine/wsl/machine.go b/pkg/machine/wsl/machine.go
index 3edf3ddf6..6862e3579 100644
--- a/pkg/machine/wsl/machine.go
+++ b/pkg/machine/wsl/machine.go
@@ -335,6 +335,16 @@ func provisionWSLDist(v *MachineVM) (string, error) {
return "", errors.Wrap(err, "package upgrade on guest OS failed")
}
+ fmt.Println("Enabling Copr")
+ if err = runCmdPassThrough("wsl", "-d", dist, "dnf", "install", "-y", "'dnf-command(copr)'"); err != nil {
+ return "", errors.Wrap(err, "enabling copr failed")
+ }
+
+ fmt.Println("Enabling podman4 repo")
+ if err = runCmdPassThrough("wsl", "-d", dist, "dnf", "-y", "copr", "enable", "rhcontainerbot/podman4"); err != nil {
+ return "", errors.Wrap(err, "enabling copr failed")
+ }
+
if err = runCmdPassThrough("wsl", "-d", dist, "dnf", "install",
"podman", "podman-docker", "openssh-server", "procps-ng", "-y"); err != nil {
return "", errors.Wrap(err, "package installation on guest OS failed")