Skip to content

to-disk: Add --systemd-units - #424

Open
axel7083 wants to merge 1 commit into
bootc-dev:mainfrom
axel7083:feature/to-disk-systemd-units
Open

axel7083 wants to merge 1 commit into
bootc-dev:mainfrom
axel7083:feature/to-disk-systemd-units

Conversation

@axel7083

@axel7083 axel7083 commented Nov 25, 2026 •

Copy link
Copy Markdown

to-disk drives bootc install over root SSH into the source image, so
images refusing root logins can't be installed. ephemeral run already
has --systemd-units for this; this adds it to to-disk.

The installer boots bcvk-to-disk.target, so units enabled via
default.target.wants/ are added to its Wants= (see #390). The units
only affect the installer VM, not the disk.

Tested with the new test_to_disk_systemd_units, which fails without
the option.

Related: #419

Assisted-by: AI
I reviewed the code carefully and understand what it does.

`to-disk` drives `bootc install` over root SSH into the source image, so
images refusing root logins can't be installed. `ephemeral run` already
has `--systemd-units` for this; this adds it to `to-disk`.

The installer boots `bcvk-to-disk.target`, so units enabled via
`default.target.wants/` are added to its `Wants=` (see bootc-dev#390). The units
only affect the installer VM, not the disk.

Assisted-by: AI
Signed-off-by: axel7083 <42176370+axel7083@users.noreply.github.com>
@axel7083
axel7083 marked this pull request as ready for review November 25, 2026 09:30

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

1 participant