From Fedora Project Wiki

Revision as of 18:54, 21 August 2009 by Jlaska (talk | contribs) (Initial draft)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

This test case is intended to validate using a host-built dracut generated ramdisk image on system currently using a locally-built mkinitrd generated ramdisk image.


How to test

  1. On an already installed system (e.g. Fedora 11), Confirm that the kernel provides a dracut host-built ramdisk image
    rpm -qf /boot/vmlinuz-$(uname -r) -l | fgrep -q initrd-generic \
    && echo "OK. Dracut ramdisk already provided by kernel rpm" \
    || echo "Bad. No dracut ramdisk provided by kernel rpm"
  2. Tell your bootloader to use the dracut ramdisk
    grubby --make-default --title "dracut-test" \
    --add-kernel /boot/vmlinuz-$(uname -r) \
    --initrd /boot/initrd-generic-$(uname -r).img \
    --copy-default
  3. Now reboot the system

Expected Results

  1. This test is only valid on a system that does provide a dracut ramdisk image with the kernel rpm. To confirm, you should see
    OK. Dracut ramdisk already provided by kernel rpm
  2. A new grub boot entry is added that uses your existing kernel, and the dracut ramdisk
  3. The system boots normally. There should be no difference between booting the locally-built mkinitrd ramdisk image and the host-built dracut ramdisk image.