Skip to content

sd-boot: Don't generate random seed for generic images#2134

Open
Johan-Liebert1 wants to merge 1 commit intobootc-dev:mainfrom
Johan-Liebert1:sdboot-random-seed
Open

sd-boot: Don't generate random seed for generic images#2134
Johan-Liebert1 wants to merge 1 commit intobootc-dev:mainfrom
Johan-Liebert1:sdboot-random-seed

Conversation

@Johan-Liebert1
Copy link
Copy Markdown
Collaborator

For installations with --generic-image we don't really want a random-seed file to be generated in the ESP as these images would most likely be reused

Closes: #2133

For installations with `--generic-image` we don't really want a
random-seed file to be generated in the ESP as these images would most
likely be reused

Closes: bootc-dev#2133

Signed-off-by: Pragyan Poudyal <pragyanpoudyal41999@gmail.com>
@Johan-Liebert1 Johan-Liebert1 requested a review from cgwalters April 9, 2026 09:53
@bootc-bot bootc-bot bot requested a review from jmarrero April 9, 2026 09:53
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request modifies the install_systemd_boot function in crates/lib/src/bootloader.rs. It updates the function signature to utilize the configopts parameter, which was previously ignored. The configopts are now used to conditionally add the --random-seed no argument to the bootctl install command if configopts.generic_image is true. This change allows for more flexible systemd-boot installation behavior based on the image type. There are no review comments to address.

@Johan-Liebert1 Johan-Liebert1 enabled auto-merge (rebase) April 9, 2026 12:47
@Johan-Liebert1
Copy link
Copy Markdown
Collaborator Author

Restarted some failed checks

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.

Add option to bootc install to-disk to not write a random-seed when installing systemd-boot (for bcvk)

2 participants