When doing a distrobox upgrade and subsequent enter I find files changed by doing zypper ps -s. When doing a distrobox stop and distrobox enter the changed files stay. Is this expected behaviour or am I doing things backwards. How can I tell distrobox or the podman container to use the new version of the files?
Yes, this container is rootful. The output is from within the container. In case of host updates, as per Micro-OS defaults the system is restarted. But still these files persist on being changed. I would expect them to adapt the change at some point so zypper ps -s would be empty.
(this is my work account)
Number 1 is correct… since transactional-update runs at regular intervals and reboots.
Number 2 is correct… this is exactly the problem I’m running into.
Ah okay. I’m assuming you’re using distrobox v1.6.1 and by the zypper ps output an init container?
If so, Luca and I had pushed quite a few changes/fixes to systemd/init distroboxes in the last few months, especially changing the way you enter init distroboxes (using su and a corresponding pam config for real login creating a proper systemd session as opposed to bash -l faux login).
Please check if the issue persists with the latest dev branch of distrobox. You should be able to install it in /usr/local/bin on MicroOS.
Init distroboxes with the dev version (or next release) uses su <user> to login, it’s not possible to use the -l flag to clear environment variables as it would break the close integration to the host provided by distrobox.
In any case, no one is logging in as root using su, so it’s safe