kernel-install: make inspect command optionally take kernel image

If the kernel image is provided, then we can inspect the kernel image
and may determine the layout based on the kernel image type.
This commit is contained in:
Yu Watanabe
2023-06-05 14:23:54 +09:00
parent 42551ea7e9
commit f7665b7f6c
3 changed files with 12 additions and 4 deletions
@@ -63,6 +63,7 @@ grep -qE 'image' "$BOOT_ROOT/the-token/1.1.1/linux"
grep -qE 'initrd' "$BOOT_ROOT/the-token/1.1.1/initrd"
"$kernel_install" inspect
"$kernel_install" inspect "$D/sources/linux"
"$kernel_install" -v remove 1.1.1
test ! -e "$entry"