Skip to content

Commit 5473541

Browse files
authored
Merge pull request #209 from endlessm/208-fix-signed-kernel-image-deployment-path
sign-kernel: Fix the signed kernel image deployment path
2 parents 6f1ebba + 09276da commit 5473541

File tree

2 files changed

+13
-19
lines changed

2 files changed

+13
-19
lines changed

elements/signing/signed-kernel-endless.bst

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,10 @@ config:
1515
# Output path for the signed kernel.
1616
output: "%{install-root}/boot/vmlinuz.signed"
1717

18-
public:
19-
initial-scripts:
20-
script:
21-
- |
22-
echo "Installing signed kernel to location expected by OSTree."
23-
sysroot="$1"
24-
version="$(ls -1 /${sysroot}/usr/lib/modules | head -n1)"
25-
mkdir -p "/${sysroot}/usr/lib/modules/${version}"
26-
cp /boot/vmlinuz.signed "/${sysroot}/usr/lib/modules/${version}/vmlinuz"
18+
install-commands:
19+
- |
20+
echo "Installing signed kernel to location expected by OSTree."
21+
sysroot="$1"
22+
version="$(ls -1 /${sysroot}/usr/lib/modules | head -n1)"
23+
mkdir -p "${install-root}/usr/lib/modules/${version}"
24+
cp "${install-root}/boot/vmlinuz.signed" "${install-root}/usr/lib/modules/${version}/vmlinuz"

elements/signing/signed-kernel-snakeoil.bst

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,15 @@ config:
1616
--cert VENDOR-snakeoil.crt \
1717
--output "%{install-root}/boot/vmlinuz.signed" \
1818
"/boot/vmlinuz"
19+
- |
20+
echo "Installing signed kernel to location expected by OSTree."
21+
sysroot="$1"
22+
version="$(ls -1 /${sysroot}/usr/lib/modules | head -n1)"
23+
mkdir -p "%{install-root}/usr/lib/modules/${version}"
24+
cp "%{install-root}/boot/vmlinuz.signed" "%{install-root}/usr/lib/modules/${version}/vmlinuz"
1925
2026
sources:
2127
- kind: local
2228
path: files/boot-keys/VENDOR-snakeoil.key
2329
- kind: local
2430
path: files/boot-keys/VENDOR-snakeoil.crt
25-
26-
public:
27-
initial-scripts:
28-
script:
29-
- |
30-
echo "Installing signed kernel to location expected by OSTree."
31-
sysroot="$1"
32-
version="$(ls -1 /${sysroot}/usr/lib/modules | head -n1)"
33-
mkdir -p "/${sysroot}/usr/lib/modules/${version}"
34-
cp /boot/vmlinuz.signed "/${sysroot}/usr/lib/modules/${version}/vmlinuz"

0 commit comments

Comments
 (0)