integ/ostree
Jiping Ma 1ac6d8adc9 Debian: Support multi-drivers in initramfs
Remove the network drivers ice, i40e and iavf if multi-drivers-switch
is set in cmdline,  which ensures that ice, i40e and iavf drivers will
not be loaded during initramfs stage.

pxe-network-installer will not be impacted because the parameter
multi-drivers-switch is not set in this stage.

We need do the following steps to switch to the legacy drivers.
1. Add /etc/depmod.d/multi-drivers.conf.
   cat /etc/depmod.d/multi-drivers.conf
   override ice      * extra/ice-1.8.3.1.2
   override i40e     * extra/i40e-2.18.9
   override iavf     * extra/iavf-4.4.2
2. depmod
3. Add cmdline parameter multi-drivers-switch=1
4. reboot

Do the following steps to switch back to the latest drivers.
1. Modify /etc/depmod.d/multi-drivers.conf.
   cat /etc/depmod.d/multi-drivers.conf
   override ice      * updates/ice
   override i40e     * updates/i40e
   override iavf     * updates/iavf
2. depmod
3. reboot

Testing:
- An ISO image can be built out successfully.
- PXE network install success onto a All-in-One Duplex lab with rt
  and std kernel.
- Drivers will not be loaded in initramfs stage.
- Latest driver versions are loaded by default and ddp version correct.
  It is 1.3.30.0.
- It can switch to the legacy drivers manually with
  /etc/depmod.d/multi-driver.conf and cmdline parameter
  multi-drivers-switch=1, ddp version is 1.3.28.0.

Story: 2010326
Task: 46438

Depends-On: https://review.opendev.org/c/starlingx/kernel/+/859519
Signed-off-by: Jiping Ma <jiping.ma2@windriver.com>
Change-Id: If86e8280011bfef97ec54ad5b47959a6128a4eb5
2022-09-28 22:16:17 -04:00
..
initramfs-ostree/debian Debian: Support multi-drivers in initramfs 2022-09-28 22:16:17 -04:00
mttyexec/debian ostree && mttyexec && initramfs-ostree: upgrade to version 20220508 2022-05-09 21:24:30 +08:00
ostree/debian ostree && mttyexec && initramfs-ostree: upgrade to version 20220508 2022-05-09 21:24:30 +08:00
ostree-upgrade-mgr/debian meta_data.yaml: add sha256sum checksum 2022-03-03 14:30:40 +08:00