Bug 1045891 - kdump initrd image creation failed due to wrong /var/lib/random-seed path
Summary: kdump initrd image creation failed due to wrong /var/lib/random-seed path
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: kexec-tools
Version: 20
Hardware: All
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: WANG Chao
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-22 20:42 UTC by Michele Baldessari
Modified: 2014-02-28 08:11 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-02-28 08:11:16 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Michele Baldessari 2013-12-22 20:42:01 UTC
Description of problem:
Dec 22 20:28:30 fante systemd: Starting Crash recovery kernel arming...
Dec 22 20:28:32 fante kdumpctl: No kdump initial ramdisk found.
Dec 22 20:28:32 fante kdumpctl: Rebuilding /boot/initramfs-3.12.5-302.fc20.x86_64kdump.img
Dec 22 20:28:47 fante kdumpctl: dracut-install: ERROR: installing '/var/lib/random-seed'
Dec 22 20:28:47 fante kdumpctl: /usr/lib/dracut/dracut-install -D /var/tmp/initramfs.zcIGxX -a /var/lib/random-seed
Dec 22 20:28:47 fante kdumpctl: mkdumprd: failed to make kdump initrd
Dec 22 20:28:47 fante kdumpctl: Starting kdump: [FAILED]
Dec 22 20:28:47 fante systemd: kdump.service: main process exited, code=exited, status=1/FAILURE
Dec 22 20:28:47 fante systemd: Failed to start Crash recovery kernel arming.
Dec 22 20:28:47 fante systemd: Unit kdump.service entered failed state.

On Fedora 20 /var/lib/random-seed does not exist. It is '/var/lib/systemd/random-seed'

Changing the location in the following files, fixed it for me:
/usr/lib/dracut/modules.d/99kdumpbase/kdump.sh:    cat /var/lib/random-seed > /dev/urandom
/usr/lib/dracut/modules.d/99kdumpbase/module-setup.sh:        dracut_install /var/lib/random-seed || exit $?

Version-Release number of selected component (if applicable):
kexec-tools-2.0.4-14.fc20.x86_64

How reproducible:
100%


Note You need to log in before you can comment on or make changes to this bug.