Add nonfree-misc firmware for HPE/Intel

During PXE install, missing firmwares:
intel/ice/ddp/ice.pkg
This commit is contained in:
Jeremy Gardais 2024-02-08 14:57:41 +01:00
parent 5083361c4e
commit c45bcb6d85
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 16 additions and 0 deletions

View File

@ -28,6 +28,7 @@ fi
FIRM_BNX2_DEB_URL_DEFAULT="http://deb.debian.org/debian/pool/non-free/f/firmware-nonfree/firmware-bnx2_20210315-3_all.deb" FIRM_BNX2_DEB_URL_DEFAULT="http://deb.debian.org/debian/pool/non-free/f/firmware-nonfree/firmware-bnx2_20210315-3_all.deb"
FIRM_NONFREE_DEB_URL_DEFAULT="http://deb.debian.org/debian/pool/non-free/f/firmware-nonfree/firmware-linux-nonfree_20210315-3_all.deb" FIRM_NONFREE_DEB_URL_DEFAULT="http://deb.debian.org/debian/pool/non-free/f/firmware-nonfree/firmware-linux-nonfree_20210315-3_all.deb"
FIRM_NONFREE_MISC_DEB_URL_DEFAULT="http://ftp.debian.org/debian/pool/non-free-firmware/f/firmware-nonfree/firmware-misc-nonfree_20230210-5_all.deb"
FIRM_MYRICOM_DEB_URL_DEFAULT="http://deb.debian.org/debian/pool/non-free/f/firmware-nonfree/firmware-myricom_20210315-3_all.deb" FIRM_MYRICOM_DEB_URL_DEFAULT="http://deb.debian.org/debian/pool/non-free/f/firmware-nonfree/firmware-myricom_20210315-3_all.deb"
FIRM_QLOGIC_DEB_URL_DEFAULT="http://deb.debian.org/debian/pool/non-free/f/firmware-nonfree/firmware-qlogic_20230210-5~bpo11+1_all.deb" FIRM_QLOGIC_DEB_URL_DEFAULT="http://deb.debian.org/debian/pool/non-free/f/firmware-nonfree/firmware-qlogic_20230210-5~bpo11+1_all.deb"
FIRM_IWLWIFI_DEB_URL_DEFAULT="http://deb.debian.org/debian/pool/non-free/f/firmware-nonfree/firmware-iwlwifi_20210315-3_all.deb" FIRM_IWLWIFI_DEB_URL_DEFAULT="http://deb.debian.org/debian/pool/non-free/f/firmware-nonfree/firmware-iwlwifi_20210315-3_all.deb"
@ -96,6 +97,12 @@ define_vars() { # {{{
firm_nonfree_deb_url="${FIRM_NONFREE_DEB_URL_DEFAULT}" firm_nonfree_deb_url="${FIRM_NONFREE_DEB_URL_DEFAULT}"
fi fi
# }}} # }}}
# If firm_nonfree_misc_deb_url wasn't defined (argument) {{{
if [ -z "${firm_nonfree_misc_deb_url}" ]; then
## Use default value
firm_nonfree_misc_deb_url="${FIRM_NONFREE_MISC_DEB_URL_DEFAULT}"
fi
# }}}
# If firm_myricom_deb_url wasn't defined (argument) {{{ # If firm_myricom_deb_url wasn't defined (argument) {{{
if [ -z "${firm_myricom_deb_url}" ]; then if [ -z "${firm_myricom_deb_url}" ]; then
## Use default value ## Use default value
@ -218,6 +225,15 @@ Manage initrd and firmwares for ${RED}${DISTRO}${COLOR_DEBUG} release."
|| error_message "Can't extract ${firm_nonfree_deb_file} file for ${DISTRO}." 3 || error_message "Can't extract ${firm_nonfree_deb_file} file for ${DISTRO}." 3
## }}} ## }}}
## Download nonfree-misc firmwares (for HPE/Intel…) and uncompress it {{{
firm_nonfree_misc_deb_file="${TEMP_DIR}/firmware-nonfree-misc.deb"
download_file "${firm_nonfree_misc_deb_url}" "${firm_nonfree_misc_deb_file}"
is_file_empty "${firm_nonfree_misc_deb_file}" \
&& error_message "${firm_nonfree_misc_deb_file} file for ${DISTRO} is empty !" 3
dpkg-deb --extract "${firm_nonfree_misc_deb_file}" "${TEMP_DIR}"/mkinitrd \
|| error_message "Can't extract ${firm_nonfree_misc_deb_file} file for ${DISTRO}." 3
## }}}
## Download myricom's firmware (for IBM) and uncompress it {{{ ## Download myricom's firmware (for IBM) and uncompress it {{{
firm_myricom_deb_file="${TEMP_DIR}/firmware-myricom.deb" firm_myricom_deb_file="${TEMP_DIR}/firmware-myricom.deb"
download_file "${firm_myricom_deb_url}" "${firm_myricom_deb_file}" download_file "${firm_myricom_deb_url}" "${firm_myricom_deb_file}"