Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions crates/lib/src/bootloader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,14 @@ pub(crate) fn install_systemd_boot(
// write it. Redirect into /tmp (a tmpfs mounted by MountedImageRoot)
// so the write succeeds and is automatically discarded.
.env("KERNEL_INSTALL_CONF_ROOT", KERNEL_INSTALL_CONF_ROOT)
// If systemd thinks it's inside of a chroot, it will fall
// back to "graceful" mode. This means that bootctl will exit
// 0 even if bootloader installation doesn't go as expected,
// and we don't want that. Explicitly disable chroot
// detection.
//
// See: https://github.com/bootc-dev/bootc/issues/2486
.env("SYSTEMD_IN_CHROOT", "0")
.log_debug()
// Capture stderr so bootctl error messages appear in our error chain.
.run_capture_stderr()?;
Expand Down
Loading