• Jaroslav Škarvada's avatar
    bootloader: add support for initrd overlays · 047a7335
    Jaroslav Škarvada authored
    The bootloader plugin now supports the following options:
      initrd_add_img=IMAGE
      initrd_add_dir=DIR
      initrd_dst_img=PATHNAME
    
    The 'initrd_add_img' adds initrd overlay named IMAGE. The IMAGE is
    added from the current profile directory. If IMAGE begins with '/' it's
    taken as absolute path (e.g. initrd_add_img="/root/overlay.img").
    
    The 'initrd_add_dir' creates initrd image from the DIR at first and then
    adds the image as a overlay. The DIR is taken from the current profile
    directory. If DIR begins with '/' it's taken as absolute path.
    
    The 'initrd_dst_img' sets the name and location of the resulting initrd
    image. Usually it is not needed to set it. By default the location of
    initrd images is /boot and the name of the image is taken as a basename
    of IMAGE or DIR. This can be overridden by 'initrd_dst_img'
    
    Currently grub2-mkconfig doesn't support initrd overlays, so the initrd
    settings are lost after 'grub2-mkconfig -o /boot/grub2/grub.cfg' is
    issued. There is grub2 RFE bugzilla:
    https://bugzilla.redhat.com/show_bug.cgi?id=1427899
    
    Resolves: rhbz#1414098
    Signed-off-by: 's avatarJaroslav Škarvada <jskarvad@redhat.com>
    047a7335