48a2e836ff
This is done for moving packages that are related to secure boot out of LAT and into integ. Use grub version: 2.06-1 . Port grub-efi from LAT and make its build independent from grub2. The patches for code and changes for debian build are ported from layers ( meta-lat and meta-secure-core ) of yocto upstream. Make grub-efi independent from grub2 because some code changes for secure boot can make grub-pc's build fail. This porting of grub-efi customizes grub images and grub.cfg for efi boot. Install those files customized to grub-efi-amd64 package. Test Plan: The tests are done with all the changes for this porting, which involves efitools/shim/grub2/grub-efi/lat-sdk.sh, because they are in a chain for secure boot verification. - PASS: secure boot OK on qemu. - PASS: secure boot OK on PowerEdge R430 lab. - PASS: secure boot NG on qemu/hardware when shim/grub-efi images are without the right signatures. Story: 2009221 Task: 46402 Signed-off-by: Li Zhou <li.zhou@windriver.com> Change-Id: Ia3b482c1959b5e6462fe54f0b0e59a69db1b1ca7
49 lines
1.2 KiB
Diff
49 lines
1.2 KiB
Diff
From bbd8d33b8646785ee31b435e9decf4271d6ecb68 Mon Sep 17 00:00:00 2001
|
|
From: Yue Tao <Yue.Tao@windriver.com>
|
|
Date: Sun, 5 Dec 2021 10:01:05 +0800
|
|
Subject: [PATCH] grub2: checking if loop devices are available
|
|
|
|
Building in a chroot environment, may not have loop device.
|
|
|
|
Signed-off-by: Yue Tao <Yue.Tao@windriver.com>
|
|
---
|
|
tests/ext234_test.in | 5 +++++
|
|
tests/fat_test.in | 5 +++++
|
|
2 files changed, 10 insertions(+)
|
|
|
|
diff --git a/tests/ext234_test.in b/tests/ext234_test.in
|
|
index 4f1eb52..380850e 100644
|
|
--- a/tests/ext234_test.in
|
|
+++ b/tests/ext234_test.in
|
|
@@ -25,6 +25,11 @@ if ! which mkfs.ext4 >/dev/null 2>&1; then
|
|
exit 77
|
|
fi
|
|
|
|
+if ! losetup -f >/dev/null 2>&1; then
|
|
+ echo "No loop device, cannot test."
|
|
+ exit 77
|
|
+fi
|
|
+
|
|
"@builddir@/grub-fs-tester" ext2_old
|
|
"@builddir@/grub-fs-tester" ext2
|
|
"@builddir@/grub-fs-tester" ext3
|
|
diff --git a/tests/fat_test.in b/tests/fat_test.in
|
|
index b6b4748..ab5348a 100644
|
|
--- a/tests/fat_test.in
|
|
+++ b/tests/fat_test.in
|
|
@@ -15,6 +15,11 @@ if ! which mkfs.vfat >/dev/null 2>&1; then
|
|
exit 77
|
|
fi
|
|
|
|
+if ! losetup -f >/dev/null 2>&1; then
|
|
+ echo "No loop device, cannot test."
|
|
+ exit 77
|
|
+fi
|
|
+
|
|
"@builddir@/grub-fs-tester" vfat16a
|
|
"@builddir@/grub-fs-tester" vfat12a
|
|
"@builddir@/grub-fs-tester" vfat12
|
|
--
|
|
2.25.1
|
|
|