a home-made install CDROM with QLOGIC firmware [was : Re: Updated installation images for Debian Ports 2019-11-22]

jhcha54008 <[email protected]>
Newsgroups gmane.linux.debian.ports.alpha
Message-ID <20191129183713.e3fbr6tkgej53hta@debirf-dominicain>
Hi,

I wonder if the (untested) simple recipe below would work.
It would confirm that the missing QLOGIC firmware
was indeed the culprit.

I hope it will help !

Regards,
JH Chatenet

# download firmware-qlogic
apt-get download firmware-qlogic

# become root (to preserve rights)
su -

# install genisoimage (if not already)
apt-get install genisoimage

# mount the CD image
mkdir my-mount-point && mount -o ro,loop debian-10.0-alpha-NETINST-1.iso my-mount-point

# extract the initramfs
mkdir my_workdir1 && cd my_workdir1
zcat ../my-mount-point/boot/initrd.gz | cpio -idv

# add some firmwares
dpkg --fsys-tarfile ../firmware-qlogic_20190717-2_all.deb \
  | tar -xvf - ./lib/firmware/qlogic/1040.bin \
      ./lib/firmware/qlogic/1280.bin \
      ./lib/firmware/qlogic/12160.bin

# rebuild the initramfs
find . | sort | cpio --create -H newc | gzip -v9 > ../initrd.gz
cd ..

# rebuild the cdrom image

mkdir my_workdir2
(cd my-mount-point && tar -cf - .) | (cd my_workdir2 && tar -xvf -)
umount my-mount-point
rm my_workdir2/boot/initrd.gz
cp -a initrd.gz my_workdir2/boot/
genisoimage -o debian-10.0-alpha-NETINST-1-fw.iso -r -J -joliet-long \
 -cache-inodes -l -alpha-boot boot/bootlx \
 -V 'Debian 10.0 alpha w fw' my_workdir2
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.