File tree Expand file tree Collapse file tree 5 files changed +15
-16
lines changed Expand file tree Collapse file tree 5 files changed +15
-16
lines changed Original file line number Diff line number Diff line change @@ -57,11 +57,6 @@ mkdir -p "tmp/sysroot/state/${BASE_IMAGE_FSVERITY}/etc/work"
57
57
mkdir -p " tmp/sysroot/state/${BASE_IMAGE_FSVERITY} /etc/upper"
58
58
mkdir -p " tmp/sysroot/state/${BASE_IMAGE_FSVERITY} /var"
59
59
60
- mkdir -p tmp/efi/loader
61
- echo ' timeout 3' > tmp/efi/loader/loader.conf
62
- mkdir -p tmp/efi/EFI/BOOT tmp/efi/EFI/systemd
63
- cp /usr/lib/systemd/boot/efi/systemd-bootx64.efi tmp/efi/EFI/systemd
64
- cp /usr/lib/systemd/boot/efi/systemd-bootx64.efi tmp/efi/EFI/BOOT/BOOTX64.EFI
65
60
${CFSCTL} oci prepare-boot " ${BASE_ID} " tmp/efi
66
61
67
62
OPTIONS=" console=ttyS0,115200 composefs=${BASE_IMAGE_FSVERITY} rw"
74
69
fi
75
70
sed -i ' s@ /boot/@ /@' " ${BLE} "
76
71
72
+ ../common/install-systemd-boot
77
73
../common/make-image " ${os} -bls-efi.qcow2"
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ set -eux
4
+
5
+ mkdir -p tmp/efi/loader
6
+ echo ' timeout 3' > tmp/efi/loader/loader.conf
7
+ mkdir -p tmp/efi/EFI/BOOT tmp/efi/EFI/systemd
8
+ cp /usr/lib/systemd/boot/efi/systemd-bootx64.efi tmp/efi/EFI/systemd
9
+ cp /usr/lib/systemd/boot/efi/systemd-bootx64.efi tmp/efi/EFI/BOOT/BOOTX64.EFI
Original file line number Diff line number Diff line change @@ -64,11 +64,7 @@ mkdir -p "tmp/sysroot/state/${BASE_IMAGE_FSVERITY}/etc/work"
64
64
mkdir -p " tmp/sysroot/state/${BASE_IMAGE_FSVERITY} /etc/upper"
65
65
mkdir -p " tmp/sysroot/state/${BASE_IMAGE_FSVERITY} /var"
66
66
67
- mkdir -p tmp/efi/loader
68
- echo ' timeout 3' > tmp/efi/loader/loader.conf
69
- mkdir -p tmp/efi/EFI/BOOT tmp/efi/EFI/systemd
70
- cp /usr/lib/systemd/boot/efi/systemd-bootx64.efi tmp/efi/EFI/systemd
71
- cp /usr/lib/systemd/boot/efi/systemd-bootx64.efi tmp/efi/EFI/BOOT/BOOTX64.EFI
72
67
${CFSCTL} oci prepare-boot " ${FINAL_ID} " tmp/efi
73
68
69
+ ../common/install-systemd-boot
74
70
../common/make-image " ${os} -uki-efi.qcow2"
Original file line number Diff line number Diff line change @@ -55,13 +55,15 @@ mkdir -p "tmp/sysroot/state/${IMAGE_FSVERITY}/etc/work"
55
55
mkdir -p " tmp/sysroot/state/${IMAGE_FSVERITY} /etc/upper"
56
56
mkdir -p " tmp/sysroot/state/${IMAGE_FSVERITY} /var"
57
57
58
+ ${CFSCTL} oci prepare-boot " ${IMAGE_ID} " tmp/efi
59
+
60
+ # install a signed copy of systemd-boot
58
61
mkdir -p tmp/efi/loader
59
62
echo ' timeout 3' > tmp/efi/loader/loader.conf
60
63
mkdir -p tmp/efi/EFI/BOOT tmp/efi/EFI/systemd
61
64
sbsign --key secureboot/db.key --cert secureboot/db.crt \
62
65
/usr/lib/systemd/boot/efi/systemd-bootx64.efi \
63
66
--output tmp/efi/EFI/systemd/systemd-bootx64.efi
64
67
cp tmp/efi/EFI/{systemd/systemd-bootx64.efi,BOOT/BOOTX64.EFI}
65
- ${CFSCTL} oci prepare-boot " ${IMAGE_ID} " tmp/efi
66
68
67
69
../common/make-image fedora-unified-secureboot-efi.qcow2
Original file line number Diff line number Diff line change @@ -37,11 +37,7 @@ mkdir -p "tmp/sysroot/state/${IMAGE_FSVERITY}/etc/work"
37
37
mkdir -p " tmp/sysroot/state/${IMAGE_FSVERITY} /etc/upper"
38
38
mkdir -p " tmp/sysroot/state/${IMAGE_FSVERITY} /var"
39
39
40
- mkdir -p tmp/efi/loader
41
- echo ' timeout 3' > tmp/efi/loader/loader.conf
42
- mkdir -p tmp/efi/EFI/BOOT tmp/efi/EFI/systemd
43
- cp /usr/lib/systemd/boot/efi/systemd-bootx64.efi tmp/efi/EFI/systemd
44
- cp /usr/lib/systemd/boot/efi/systemd-bootx64.efi tmp/efi/EFI/BOOT/BOOTX64.EFI
45
40
${CFSCTL} oci prepare-boot " ${IMAGE_ID} " tmp/efi
46
41
42
+ ../common/install-systemd-boot
47
43
../common/make-image fedora-unified-efi.qcow2
You can’t perform that action at this time.
0 commit comments