Repository navigation
aboot support followup #2593
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
aboot support followup #2593
Changes from all commits
f56da88
8338a85
2272247
efaa310
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2217,7 +2217,7 @@ fn install_ukiboot( | |
| Ok(()) | ||
| } | ||
|
|
||
| fn validate_bootloader( | ||
| pub(crate) fn validate_bootloader( | ||
| entry: &ComposefsBootEntry<Sha512HashValue>, | ||
| bootloader: Bootloader, | ||
| ) -> Result<()> { | ||
|
|
@@ -2596,6 +2596,10 @@ pub(crate) async fn setup_composefs_boot( | |
| .context("Failed to mount composefs image")?; | ||
| let image_root = Dir::reopen_dir(&composefs_mnt_fd)?; | ||
|
|
||
| if boot_type == BootType::Aboot { | ||
| super::aboot::require_aboot_deploy_in_image(&image_root)?; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Install picks the bootloader from the payload encoding ( |
||
| } | ||
|
|
||
| let postfetch = PostFetchState::new(state, &image_root, image_bootloader(entry))?; | ||
|
|
||
| validate_bootloader(entry, postfetch.detected_bootloader)?; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aboot-deploy falls back to
/boot/aboot.cfgwhen/etc/aboot.cfgis missing (resolve_aboot_config_path/LEGACY_ABOOT_CFG_PATH), so mirroring that would keep the two in agreement; at least a debug log would help. (The parser itself matchesaboot_config_load().) Nit:aboot::get_bootloaderandstatus::get_bootloaderare both used in status.rs;host_bootloaderwould read better.