]> git.ipfire.org Git - thirdparty/dracut.git/commit
01fips: fix HMAC file path resolution
authorJonathan Lebon <jonathan@jlebon.com>
Tue, 29 Oct 2019 13:35:41 +0000 (09:35 -0400)
committerLukáš Nykrýn <lnykryn@redhat.com>
Thu, 31 Oct 2019 10:12:36 +0000 (11:12 +0100)
commit9e759aa9696704809df6a147cb091ea052dd208d
treead94d1803dc38d44bcc71a690c1fb83f67e6bbae
parent27f758e12c544e040520452336f31ffc02ef8ebb
01fips: fix HMAC file path resolution

There is a small regression in #343: when handling the 'separate boot
partition' case, we're checking for the kernel image in the wrong
location: `BOOT_IMAGE` is the `/boot`-relative path to the kernel image,
so `/boot/${BOOT_IMAGE_PATH}/${BOOT_IMAGE}` expands to e.g.
`/boot/mysubdir1/mysubdir2/mysubdir1/mysubdir2/vmlinuz...`.

We should be using `BOOT_IMAGE_NAME` here instead (and in fact, the next
if-statement does this correctly, so it might've just been accidentally
left out of #343).
modules.d/01fips/fips.sh