]> git.ipfire.org Git - thirdparty/dracut.git/commit
01fips: Fix creating path to .hmac of kernel based on BOOT_IMAGE 335/head
authorLukas Nykryn <lnykryn@redhat.com>
Mon, 18 Dec 2017 13:48:59 +0000 (14:48 +0100)
committerLukas Nykryn <lnykryn@redhat.com>
Mon, 18 Dec 2017 13:48:59 +0000 (14:48 +0100)
commit8f5c564cb30966878b0d90025568253016e1402f
tree52cdb1a6c0f3bebda86f0dc09abf13f101851fc5
parent1619e731f7e6c257532898efc0a7008e407d427e
01fips: Fix creating path to .hmac of kernel based on BOOT_IMAGE

Old code did not work for two most common use-cases.
On most machines BOOT_IMAGE is set to something like
/vmlinuz-4.11.3-202.fc25.x86_64. So if we just add prefix "/boot/."
it won't work. Also on machines without /boot on separate partition
BOOT_IMAGE already has the /boot/ prefix (/boot/vmlinuz-3.10.0-799.el7.x86_64).
So let's strip it in such case.

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