]> git.ipfire.org Git - thirdparty/dracut.git/commit
01fips: Properly fix creating path to .hmac of kernel based on BOOT_IMAGE 343/head
authorLukas Nykryn <lnykryn@redhat.com>
Tue, 26 Dec 2017 11:18:47 +0000 (12:18 +0100)
committerLukas Nykryn <lnykryn@redhat.com>
Thu, 28 Dec 2017 08:59:48 +0000 (09:59 +0100)
commitd818986db485fc57a76a247a8475c3144acd33dc
tree997b37ce7445c20e7777f68f7b062e35a0f888ab
parent8134db6c335b28b6bd58bac4ef4c2236cc9ea06a
01fips: Properly fix creating path to .hmac of kernel based on BOOT_IMAGE

8f5c5 broke the case where BOOT_IMAGE is not set at all.
This code should handle following:
1) BOOT_IMAGE not set
2) BOOT_IMAGE set to something unrelated (s390)
3) BOOT_IMAGE=vmlinuz-4.14.7-300.fc27.x86_64
4) BOOT_IMAGE=/vmlinuz-4.14.7-300.fc27.x86_64
5) BOOT_IMAGE=/boot/vmlinuz-4.14.7-300.fc27.x86_64
6) BOOT_IMAGE=subdir/vmlinuz-4.14.7-300.fc27.x86_64
7) BOOT_IMAGE=/subdir/vmlinuz-4.14.7-300.fc27.x86_64
8) BOOT_IMAGE=/boot/subdir/vmlinuz-4.14.7-300.fc27.x86_64

https://bugzilla.redhat.com/show_bug.cgi?id=1415032
modules.d/01fips/fips.sh