Skip to content

Commit 2de96da

Browse files
hvj7coiby
authored andcommitted
Add persisent device if FIPS is enabled
mkdumprd has a code to add a disk to kdump initramfs, in case FIPS is enabled and /boot is on a separate partition. This code used to work, since dracut was not force checking that added disk is in fact available. Since dracut commit c79fc8f dracut in fact checks for added device, and since disk name could have been changed between live system and kdump initramfs, kdump can fail. To resolve this problem we re-use get_persistent_dev from dracut-functions.sh which will be sourced by mkdrumpd to get persistent device name. Signed-off-by: Alex Burmashev <alexander.burmashev@oracle.com> Signed-off-by: Harshvardhan Jha <harshvardhan.j.jha@oracle.com>
1 parent d50abe4 commit 2de96da

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mkdumprd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,8 +433,9 @@ if ! is_fadump_capable; then
433433
# to /sysroot beforehand.
434434
if [[ $(cat /proc/sys/crypto/fips_enabled 2> /dev/null) == 1 ]]; then
435435
_boot_source=$(findmnt -n -o SOURCE --target /boot)
436+
_disk_persistent=$(get_persistent_dev "$_boot_source")
436437
if mountpoint -q /boot; then
437-
dracut_args+=(--add-device "$_boot_source")
438+
dracut_args+=(--add-device "$_disk_persistent")
438439
else
439440
add_mount "$_boot_source"
440441
fi

0 commit comments

Comments
 (0)