Uploaded image for project: 'Funtoo Linux'
  1. Funtoo Linux
  2. FL-1469

firmware files not appended to initramfs in genkernel

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • None
    • None

      The following patch deprecates use of the FIRMWARE_DIR variable:

      commit 1d946d903c93cd022611eff180c52e2df5855a14
      Author: Daniel Robbins <drobbins@funtoo.org>
      Date:   Wed Mar 9 21:00:07 2011 -0700
      
          firmware improvements:
          
          --firmware-dst defines where firmware is installed *to* - this is
          useful when using genkernel within ebuilds and you want to write
          firmware to somewhere in $WORKDIR. Defaults to /lib/firmware.
          
          --firmware-src replaces --firmware-dir (still supported) and defaults
          to --firmware-dst.
      
      

      However, in gen_initramfs.sh, we can see that no firmware files will be appended to the image if FIRMWARE_DIR is not set, irregardless of wether FIRMWARE_SRC is defined or not.

              if isTrue "${FIRMWARE}" && [ -n "${FIRMWARE_DIR}" ]
              then
                      append_data 'firmware'
              fi
      

      Fix attached.

            dantrell dantrell [X] (Inactive)
            julianp julianp [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: