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

Allow importctl to place images under /run #32938

Open
tchx84 opened this issue May 20, 2024 · 1 comment
Open

Allow importctl to place images under /run #32938

tchx84 opened this issue May 20, 2024 · 1 comment
Labels
import RFE 🎁 Request for Enhancement, i.e. a feature request

Comments

@tchx84
Copy link

tchx84 commented May 20, 2024

Component

other

Is your feature request related to a problem? Please describe

Currently, importctl pull-raw, pull-tar, import-raw, import-tar and import-fs operations can only place images under /var/lib. As I understand it, images placed under /var/lib are kept activated even after system reboots.

Myself, along with other members of the GNOME community (CC @alatiera), are currently exploring ways of using multiple pieces of systemd, including importctl, to provide a better and safer experience to develop and test system components on immutable systems.

We would like to simplify as much as possible the steps required to recover from potentially system-breaking changes.

Describe the solution you'd like

To achieve this in a safer way, I am wondering if we would be open to extend importctl to allow placing images under /run as well, e.g., and be just a simple system reboot back to safety.

e.g., importctl import-raw --class=sysext --runtime component.sysext.raw component, would result in /run/extensions/component.raw

Describe alternatives you've considered

Writing some wrapper on top of importctl that would hack this behavior.

The systemd version you checked that didn't have the feature you are asking for

256~rc1

@tchx84 tchx84 added the RFE 🎁 Request for Enhancement, i.e. a feature request label May 20, 2024
@yuwata yuwata added the import label May 20, 2024
@bluca
Copy link
Member

bluca commented May 21, 2024

Sounds reasonable, we have the same behaviour in other tools, could you send a PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
import RFE 🎁 Request for Enhancement, i.e. a feature request
Development

No branches or pull requests

3 participants