Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

provide handover interface to host #121

Open
lnussel opened this issue May 22, 2024 · 4 comments
Open

provide handover interface to host #121

lnussel opened this issue May 22, 2024 · 4 comments

Comments

@lnussel
Copy link
Member

lnussel commented May 22, 2024

There are use cases where scripts inside a transaction need to convey information back to the host such as openSUSE/sdbootutil#92. So far scripts try to abuse /dev/shm due to lack of a better solution.

Therefore I'd like to propose to introduce e.g. /run/transactional-update/snapshot/$id that is then bind mounted as /run of snapshot $id while it's open.

@lnussel
Copy link
Member Author

lnussel commented May 22, 2024

Another option would be to provide something like /run/host like systemd-nspawn: https://systemd.io/CONTAINER_INTERFACE/

That one would still require special treatment inside the transaction though while the bind mount solution could just transparently see stuff that existing packages touch in /run anyway.

@aplanas
Copy link
Collaborator

aplanas commented May 22, 2024

I am testing now a plugin mechanism for tukit, that it is executed while the chroot environment is alive (but not active). The plugins can use the host /run to transfer this information and drop /dev/shm. Can be an alternative to this proposal, as can be extended by different projects that provider their own plugins (sdbootutil, suse-module-tools, t-u, etc)

@aplanas
Copy link
Collaborator

aplanas commented May 29, 2024

Proposal: #122

@laenion
Copy link
Collaborator

laenion commented Jul 4, 2024

#122 was merged. It may still be worth thinking about a dedicated handover interface, so I'm leaving this ticket open for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants