Skip to content

install: Use systemd-repart for partitioning#2314

Open
Johan-Liebert1 wants to merge 1 commit into
bootc-dev:mainfrom
Johan-Liebert1:systemd-repart
Open

install: Use systemd-repart for partitioning#2314
Johan-Liebert1 wants to merge 1 commit into
bootc-dev:mainfrom
Johan-Liebert1:systemd-repart

Conversation

@Johan-Liebert1

Copy link
Copy Markdown
Collaborator

If systemd-repart binary is present and we find one of the directories associated with systemd-repart configurations, then use systemd-repart for partitioning, else fallback to sfdisk

Also, update the default ESP size to 2G for composefs installs. This only applies to sfdisk path.

Closes: #2132

If `systemd-repart` binary is present and we find one of the directories
associated with systemd-repart configurations, then use systemd-repart
for partitioning, else fallback to sfdisk

Also, update the default ESP size to 2G for composefs installs. This
only applies to sfdisk path.

Closes: bootc-dev#2132

Signed-off-by: Pragyan Poudyal <pragyanpoudyal41999@gmail.com>
@github-actions github-actions Bot added the area/install Issues related to `bootc install` label Jul 14, 2026
@bootc-bot bootc-bot Bot requested a review from gursewak1997 July 14, 2026 07:53
@Johan-Liebert1 Johan-Liebert1 added the ci/tier-1 Run CI for tier-1 OS (centos-10) only label Jul 14, 2026

@cgwalters cgwalters left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for starting this! ACK on the principle.

Needs docs and tests at least.

.arg("--dry-run=no")
.arg("--empty=allow")
.arg("--no-pager")
.arg("--json=pretty")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I would say it's better to use its varlink API now; I was already proposing pulling in zlink for bootc-dev/bcvk#222

}

let rootpn =
rootpn.ok_or_else(|| anyhow::anyhow!("systemd-repart output missing root partition"))?;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think we should support images that have repart.d definitions that are expected to run on firstboot in the target environment, without defining the default root either.

I would flip this around a bit - we default to running repart.d definitions for the root and esp/xbootldr, but probably not the other ones? And we let the other ones naturally run on firstboot.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I think we should support images that have repart.d definitions that are expected to run on firstboot in the target environment, without defining the default root either.

so this will entail us creating a root partition if it's not defined?

Agree with the second point. We can only include root,esp and xbootldr

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

Labels

area/install Issues related to `bootc install` ci/tier-1 Run CI for tier-1 OS (centos-10) only

Projects

None yet

Development

Successfully merging this pull request may close these issues.

install to-disk should create bigger ESP (likely 2G) for composefs+UKI installations by default

2 participants