Busybox provides applets for all (e.g. modprobe, rmmod)
kmod binaries (under /sbin). These kmod binaries are all
copied over in the busybox CI container except kmod binary
itself, which will confuse dracut (as command kmod will return tue).
Remove kmod from /bin/kmod from the busybox container.
ln -sf /boot/vmlinuz-virt /boot/vmlinuz-$(cd /lib/modules; ls -1 | tail -1)
# busybox container
-# replace all GNU coreutils and GNU util-linux binaries with busybox binaries
+# replace GNU coreutils, util-linux, kmod binaries with busybox binaries
RUN \
if [ "$OPTION" == "busybox" ] ; then \
mkdir /busybox && cd /busybox && /bin/busybox --install -s /busybox ;\
cp -a /busybox/* /sbin/ ;\
cp -a /busybox/* /usr/bin/ ;\
cp -a /busybox/* /usr/sbin/ ;\
+ rm -f /bin/kmod ;\
fi