Update Podman Windows installer to update the PATH for all users if
executed in machine scope mode.
Added a new test that checks if Podman installation folder is in PATH.
Fixes#29160
Signed-off-by: Mario Loriedo <mario.loriedo@gmail.com>
Bump bundled krunkit to 1.3.2, which comes with libkrun 1.19.4.
This version of libkrun includes a fix in virtio-fs on macOS for
libkrun/libkrun#769 that potentially impacts podman users.
Signed-off-by: Sergio Lopez <slp@redhat.com>
Bump bundled krunkit to 1.3.1, which comes with libkrun 1.19.3.
This version of krunkit makes HTTP parsing on the rest-uri more
robust to ensure it only acts on the right request.
It also enables a new permission semantics mode in libkrun that's
closer to the user expectations on macOS.
Fixes: #21402Fixes: #29084
Signed-off-by: Sergio Lopez <slp@redhat.com>
These are AI generated (Gemini 3.5 Thinking). I have included the
full transcript as well so there is a further source of truth in
the event of error in the AI summary, but it seemed reasonably
accurate when I reviewed it.
Signed-off-by: Matt Heon <mheon@redhat.com>
The last user of get_env_key was removed by commit
69163af2a0 ("Remove gitleaks scanning").
Remove it.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Introducing a new `podmand system` subcommand to prepare a Windows host
to run Hyper-V based Podman machines: `hyperv-prep`.
When executed it:
- creates of the registry keys for VSocks
- adds the current user to the Hyper-V administrators group
This command requires an administrator terminal.
Signed-off-by: Mario Loriedo <mario.loriedo@gmail.com>
Per new config file parsing order the /etc/containers/storage.conf path
we create below is a clean overwrite so there is no need to explicitly
remove the file here.
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Rootless users cannot use composefs so we need to set it up in the
storage.rootful.conf.d/ directory so only the rootful podman reads this
file.
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
It hard codes a graphroot which is not correct for rootless users based
on our new config file parsing.
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Bump bundled krunkit to 1.2.1, which comes with libkrun 1.17.4.
The highlights for podman in this release of libkrun are a number
of virtio-fs behavioural fixes, specially when running non-root
users within a container, along with better disk performance and
lower space consumption thanks to support for F_DISCARD and
F_WRITE_ZEROES.
This release of krunkit also introduces the "--timesync" flag,
with the same behavior as the vfkit counterpart, meaning it's now
possible to enable clock synchronization with this mechanism.
Fixes: #27679
Signed-off-by: Sergio Lopez <slp@redhat.com>
When `podman-restart.service` stops containers, it marks them as "stopped by
user" which breaks the `unless-stopped` restart policy. Add hidden
`--not-stopped-by-user` flag to prevent this, allowing `unless-stopped`
containers to restart on next boot.
Fixes: https://github.com/containers/podman/issues/28152
Fixes: https://issues.redhat.com/browse/RUN-4357
Signed-off-by: Jan Rodák <hony.com@seznam.cz>
By default something like a 404 will not make curl exit with an error
code. This is problematic for obvious reasons and instead of the file
you want you may now have some 404 html text instead.
I noticed this in #28003 which well just build fine installers except
the binary downloaded by the installer Makefile simply did not exist.
So to address that add --fail to most curl commands.
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This is a follow-up of d04c84e7 and fixes the error message that is
displayed if someone tries to run `contrib/win-installer/build.ps1` but
doesn't have the .NET SDK installed.
Signed-off-by: Mario Loriedo <mario.loriedo@gmail.com>
It was failing on darwin, because amd64 is no longer supported.
"build constraints exclude all Go files" in pkg/machine/libkrun
Signed-off-by: Anders F Björklund <anders.f.bjorklund@gmail.com>
Update the service description to reflect that it now also restarts
containers with unless-stopped restart policy, not just always.
This was changed in PR #27619 but the description was not updated.
Fixes: #27908
Signed-off-by: Alessio Attilio <attilio.alessio@protonmail.com>
The old setup bundle was still built and released to avoid breaking
downstream projects. This commit removes it and, starting from Podman
v6, only the installer that doesn't require elevated privileges will be
released.
This is a subtask of issue #27624.
Signed-off-by: Mario Loriedo <mario.loriedo@gmail.com>
Before running machine e2e tests on Windows, the gvproxy executable was
copied in `C:\Program Files\Redhat\Podman`. This is wrong because the
target folder, where Podman is installed, has changed but is also
useless because, after #27612, podman looks for gvproxy in `podman.exe`
folder too. This commit removes the gvproxy copy step.
Signed-off-by: Mario Loriedo <mario.loriedo@gmail.com>
Podman uses this env toi do various things, we don't want the external
env to affect our tests here.
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This PR removes support for Intel Apple Macs. The removal includes
impacts to code, tests, Makefile, builds, release builds, and so forth.
Fixes Jira: RUN-3621
Signed-off-by: Brent Baude <bbaude@redhat.com>