From Fedora Project Wiki

m (Minor update)
No edit summary
 
(3 intermediate revisions by one other user not shown)
Line 4: Line 4:
# On an already installed system (e.g. {{FedoraVersion|long|11}}), 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 "OK.  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:
# Install the ''dracut'' and ''dracut-generic'' packages:
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>
# 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 23: 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

  1. 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"
  2. Install the dracut and dracut-generic packages:
    yum install dracut dracut-generic
  3. Create a dracut enabled kernel ramdisk image
    dracut /boot/initrd-generic-$(uname -r).img $(uname -r)
  4. 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
  5. Now reboot the your system

Expected Results

  1. 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
  2. Dracut packages should install without error
  3. The dracut ramdisk image is created without error
  4. A new grub boot entry is added that uses your existing kernel, but the new dracut ramdisk
  5. The system boots normally