Fedora atomic DIB element can't be used with dracut-regenerate element

Bug #1699771 reported by Mark Goddard
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Magnum
In Progress
Undecided
Mark Goddard

Bug Description

The dracut-regenerate element can be used to rebuild the ramdisk of an image which uses dracut (CentOS, RHEL, Fedora, etc.). This can be useful if additional drivers are required in the ramdisk to support a particular set of hardware (RAID controllers, NICs, etc.).

Magnum's fedora-atomic DIB element[1] can't be used with dracut-regenerate element as it removes the dracut package at the end of it's finalise.d/80-fedora-atomic script. Since the dracut-regenerate requires dracut to be installed in its finalise.d/98-dracut-regenerate script[2], the dracut-regenerate element fails to build. The same is true for the now removed dracut-network element (available in diskimage-builder < 2.6.0).

With a workaround for this issue in place, it is still necessary to set the following environment variables to inform dracut of the unusual location of the kernel and ramdisk:

export DIB_BAREMETAL_KERNEL_PATTERN='ostree/fedora-atomic-*/vmlinuz*'
export DIB_BAREMETAL_INITRD_PATTERN='ostree/fedora-atomic-*/initramfs-*'

[1] https://github.com/openstack/magnum/tree/907415c984e95e09a8b872f3c551ae6108c91de1/magnum/drivers/common/image/fedora-atomic
[2] https://github.com/openstack/diskimage-builder/blob/master/diskimage_builder/elements/dracut-regenerate/finalise.d/98-dracut-regenerate

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to magnum (master)

Fix proposed to branch: master
Review: https://review.openstack.org/476513

Changed in magnum:
assignee: nobody → Mark Goddard (mgoddard)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on magnum (master)

Change abandoned by Mark Goddard (<email address hidden>) on branch: master
Review: https://review.openstack.org/476513
Reason: This element doesn't seem to be used any more.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.