Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@DaanDeMeyer
Copy link
Contributor

systemd-repart's --image switch requires root privileges as well, so let's use become_root_cmd() there as well.

systemd-repart's --image switch requires root privileges as well, so
let's use become_root_cmd() there as well.
@behrmann behrmann merged commit cec3141 into systemd:main Jan 24, 2025
35 checks passed
network=True,
devices=True,
options=["--bind", fname, workdir(fname)],
setup=become_root_cmd(),
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I understand the idea is to be able to run mkosi boot without sudo (and with the latest changes it works). Though it breaks when things like --register=yes/Register= are added because mkosi bails out with

Container registration requires root privileges

even though it should have no problem with that in theory. (I'm not sure how important it is though. It's just something I noticed when I poked mkosi in the context of HACKING.md)

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's of course possible to get it around with

mkosi boot --register=yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants