Skip to content

particleos: add support for sysinstall#158

Merged
poettering merged 3 commits into
systemd:mainfrom
poettering:syinstall
May 11, 2026
Merged

particleos: add support for sysinstall#158
poettering merged 3 commits into
systemd:mainfrom
poettering:syinstall

Conversation

@poettering
Copy link
Copy Markdown
Member

This adds a new UKI profile for booting in installer mode, using the recently merged sysinstall feature of systemd:

systemd/systemd#41877

This also changes the live mode (which is very similar) to not disable firstboot, but instead uses credentials to tweak the prompts. This is beneficial, since we want firstboot to run always, not because of the interactivity features, but simply because it processes a bunch of firstboot.* credentials we want.

It also gets rid of the changes made to console logging. That's useful for the debug boot mode, but is inappropriate for the installer and live profiles which should just be "clean"

This makes usr/lib/repart.sysinstall.d/ almost identical to the regular /usr/lib/repart.d/ with one exception: the CopyFiles= line is dropped now, because we don't need it in the installer case (because sysinstall utilizes bootctl link + bootctl install to initialize the ESP properly). Eventually we probably should drop CopyFiles= entirely, but after discussing with Daan this day is not today yet.

@poettering poettering force-pushed the syinstall branch 2 times, most recently from ee20e04 to e7e1f54 Compare May 11, 2026 13:53
@poettering
Copy link
Copy Markdown
Member Author

this new version of the PR gets rid of /usr/lib/repart.sysinstall.d/ again, as per discussion with @daandemeyer offline. The same repart.d definitions are now used when booting regularly to extend the root disk, and when doing sysinstall onto a new disk

Copy link
Copy Markdown
Collaborator

@daandemeyer daandemeyer left a comment

Choose a reason for hiding this comment

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

Fix the commit messages as well please, they're out of date

Comment thread README.md Outdated
poettering and others added 3 commits May 11, 2026 17:00
This adds a new UKI profile for booting in installer mode, using the
recently merged sysinstall feature of systemd:

systemd/systemd#41877

This also changes the live mode (which is very similar) to not disable
firstboot, but instead uses credentials to tweak the prompts. This is
beneficial, since we want firstboot to run always, not because of the
interactivity features, but simply because it processes a bunch of
firstboot.* credentials we want.

It also gets rid of the changes made to console logging. That's useful
for the debug boot mode, but is inappropriate for the installer and live
profiles which should just be "clean"

This drops CopyFiles= from the installed repart.d/ drop-in for the ESP:
we don't need it anymore, systemd-sysinstall's "bootctl link" and
"bootctl install" invocations are much better at setting up the ESP.
Since libfdisk became a dlopen() dependency we are missing it in the
fedora initrd, because it doesn't get pull in by anything else but
repart.
@poettering poettering merged commit 94917b2 into systemd:main May 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants