From Fedora Project Wiki
(Initial draft) |
No edit summary |
||
(4 intermediate revisions by one other user not shown) | |||
Line 2: | Line 2: | ||
|description=This test case is intended to validate using a locally built [[Features/Dracut|dracut]] generated ramdisk image on system whose kernel doesn't provide a host-built dracut ramdisk. | |description=This test case is intended to validate using a locally built [[Features/Dracut|dracut]] generated ramdisk image on system whose kernel doesn't provide a host-built dracut ramdisk. | ||
|actions= | |actions= | ||
# Confirm that the kernel does not provide a dracut ramdisk image | # On an already installed system (e.g. {{FedoraVersion|long|11}}), Confirm that the kernel does not provide a dracut ramdisk image | ||
#: <pre>rpm -qf /boot/vmlinuz-$(uname -r) -l | fgrep -q initrd-generic \ | #: <pre>rpm -qf /boot/vmlinuz-$(uname -r) -l | fgrep -q initrd-generic \ | ||
#: && echo "Dracut ramdisk already provided by kernel rpm" \ | #: && echo "Bad. Dracut ramdisk already provided by kernel rpm" \ | ||
#: || echo "No dracut ramdisk provided by kernel rpm" </pre> | #: || echo "OK. No dracut ramdisk provided by kernel rpm" </pre> | ||
# | # Install the ''dracut'' and ''dracut-generic'' packages: | ||
#: <pre>yum install dracut dracut-generic</pre> | #: <pre>yum install dracut dracut-generic</pre> | ||
# Create a dracut enabled kernel ramdisk image | # Create a dracut enabled kernel ramdisk image | ||
Line 17: | Line 17: | ||
# Now reboot the your system | # Now reboot the your system | ||
|results= | |results= | ||
# This test is only valid on a system that '''does not''' provide a dracut ramdisk image with the kernel rpm. To confirm, you should see <pre>OK. No dracut ramdisk provided by kernel rpm</pre> | |||
# Dracut packages should install without error | # Dracut packages should install without error | ||
# The dracut ramdisk image is created without error | # The dracut ramdisk image is created without error | ||
Line 22: | Line 23: | ||
# The system boots normally | # The system boots normally | ||
}} | }} | ||
[[Category:Dracut Test Cases]] | |||
[[Category:Package_dracut_test_cases]] |
Latest revision as of 19:37, 19 June 2011
Description
This test case is intended to validate using a locally built dracut generated ramdisk image on system whose kernel doesn't provide a host-built dracut ramdisk.
How to test
- On an already installed system (e.g. Fedora 11), Confirm that the kernel does not provide a dracut ramdisk image
rpm -qf /boot/vmlinuz-$(uname -r) -l | fgrep -q initrd-generic \
- && echo "Bad. Dracut ramdisk already provided by kernel rpm" \
- || echo "OK. No dracut ramdisk provided by kernel rpm"
- Install the dracut and dracut-generic packages:
yum install dracut dracut-generic
- Create a dracut enabled kernel ramdisk image
dracut /boot/initrd-generic-$(uname -r).img $(uname -r)
- Tell your bootloader to use the new dracut ramdisk
grubby --make-default --title "Test dracut" \
- --add-kernel /boot/vmlinuz-$(uname -r) \
- --initrd /boot/initrd-generic-$(uname -r).img \
- --copy-default
- Now reboot the your system
Expected Results
- This test is only valid on a system that does not provide a dracut ramdisk image with the kernel rpm. To confirm, you should see
OK. No dracut ramdisk provided by kernel rpm
- Dracut packages should install without error
- The dracut ramdisk image is created without error
- A new grub boot entry is added that uses your existing kernel, but the new dracut ramdisk
- The system boots normally