Comment 1 for bug 1817321

Test for scsi-modules udeb in Disco:
---

Check the original/modified udeb contents:

$ dpkg-deb -c scsi-modules-4.19.0-13-generic-di_4.19.0-13.14_amd64.udeb | grep iscsi_ibft.ko
$

$ dpkg-deb -c scsi-modules-4.19.0-13-generic-di_4.19.0-13.14+test20190221b1_amd64.udeb | grep iscsi_ibft.ko
-rw-r--r-- root/root 17393 2019-02-21 19:27 ./lib/modules/4.19.0-13-generic/kernel/drivers/firmware/iscsi_ibft.ko

Check the module loads in the installer:

$ wget http://archive.ubuntu.com/ubuntu/dists/disco/main/installer-amd64/current/images/netboot/ubuntu-installer/amd64/{linux,initrd.gz}

$ virt-install \
> --name disco-ibft \
> --vcpus 2 \
> --memory 1024 \
> --network user,model=virtio \
> --graphics none \
> --disk none \
> --boot kernel=linux,initrd=initrd.gz,kernel_args='console=ttyS0'

After network configuration, udeb download/install, in users/password, select go back and exit to shell.

Original udeb already downloaded and does not contain module:

~ # grep 'retrieving scsi.modules' /var/log/syslog
Feb 22 13:08:57 anna[1509]: DEBUG: retrieving scsi-modules-4.19.0-13-generic-di 4.19.0-13.14

~ # modinfo -n iscsi_ibft
modinfo: ERROR: Module iscsi_ibft not found.

Download modified udeb, install, test module load:

~ # wget https://.../scsi-modules-4.19.0-13-generic-di_4.19.0-13.14+test20190221b1_amd64.udeb

~ # udpkg -i scsi-modules-4.19.0-13-generic-di_4.19.0-13.14+test20190221b1_amd64.udeb
~ # depmod -a

~ # modinfo -n iscsi_ibft
/lib/modules/4.19.0-13-generic/kernel/drivers/firmware/iscsi_ibft.ko

~ # modprobe iscsi_ibft

~ # lsmod | grep ^iscsi_ibft
iscsi_ibft 16384 0