The script will run inside the QM partition. And it won't be possible to access /lib/modules to load any module via modprobe.
The script has been test within a VM (cs9-qemu-qmcontainer-regular.x86_64.qcow2) via qemu
bash-5.1# ./modprobe_module
modprobe: FATAL: Module ext4 not found in directory /lib/modules/5.14.0-447.400.el9iv.x86_64
ls: cannot access '/lib/modules/5.14.0-447.400.el9iv.x86_64': No such file or directory
done
Add a modprobe_module tool for https://issues.redhat.com/browse/VROOM-19336
The script will run inside the QM partition. And it won't be possible to access /lib/modules to load any module via modprobe.
The script has been test within a VM (cs9-qemu-qmcontainer-regular.x86_64.qcow2) via qemu