-
Notifications
You must be signed in to change notification settings - Fork 183
Open
Description
The current implementation assumes that all metal images have an EFI-SYSTEM partition. If this partition is not found, g.findfs_label() will raise an exception, causing the diff operation to fail. This could be an issue for BIOS-only images. To make this more robust, you should handle the case where the EFI partition is not present.
try:
efi = g.findfs_label("EFI-SYSTEM")
g.mount_ro(efi, "/boot/efi")
except RuntimeError:
# Not all images have an EFI partition, so we can ignore.
pass
Originally posted by @gemini-code-assist[bot] in #4360 (comment)
Metadata
Metadata
Assignees
Labels
No labels