-
Notifications
You must be signed in to change notification settings - Fork 75
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
24 Support shim fallback bootchain #107
base: 24
Are you sure you want to change the base?
Conversation
Signed-off-by: Oliver Calder <[email protected]>
Signed-off-by: Oliver Calder <[email protected]>
Signed-off-by: Oliver Calder <[email protected]>
Signed-off-by: Oliver Calder <[email protected]>
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.
Looks great, some comments though:
- Looks like the right time to remove shim from the boot partition (it has never been used)
- 2.61 might be too optimistic
See also comment below.
In any case, the PR cannot be merged until a snapd version with support for this has landed.
install -m 644 "$shim_path" "$CRAFT_PART_INSTALL"/shim.efi.signed | ||
install -m 644 "$grub_path" "$CRAFT_PART_INSTALL"/${grub_bin%.signed} | ||
install -m 644 "$fb_path" "$CRAFT_PART_INSTALL"/$fb_bin | ||
install -m 644 "$mm_path" "$CRAFT_PART_INSTALL"/$mm_bin | ||
install -m 644 "$csv_path" "$CRAFT_PART_INSTALL"/$boot_csv |
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.
Maybe time to make this a for loop
As it is not really used at all from there. Signed-off-by: Oliver Calder <[email protected]>
This PR is being taken over by @valentindavid |
Adjust the EFI boot assets to place shim and grub binaries in
EFI/ubuntu/
, with boot and fallback binaries inEFI/BOOT/
. Additionally,BOOT${arch}.CSV
andmm${arch}.efi
are placed inEFI/ubuntu/
.This corresponds to work being done in snapd to support shim fallback: canonical/snapd#13205
This corresponds to PR #106 , and is designed to be eventually backported to branches 22 and 20.
The possible boot patterns are:
EFI/ubuntu/shim${arch}.efi
).EFI/BOOT/fb${arch}.efi
is run, which searches forBOOT${arch}.CSV
, finds it inEFI/ubuntu/
, and thus boots the corresponding assets inEFI/ubuntu/
.EFI/BOOT/BOOT${arch}.efi
.