]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
ci(busybox): do not mix kmod and busybox binaries
authorJo Zzsi <jozzsicsataban@gmail.com>
Sun, 25 Jan 2026 22:37:12 +0000 (17:37 -0500)
committerLaszlo <laszlo.gombos@gmail.com>
Sun, 25 Jan 2026 22:55:59 +0000 (17:55 -0500)
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.

test/container/Dockerfile-alpine

index 184f7d76066b643ccda29561b7da9a54c8d0c8a0..8cb20eda15e5a14d26462b4869cd7a0032be308a 100644 (file)
@@ -43,7 +43,7 @@ RUN \
   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 ;\
@@ -51,4 +51,5 @@ if [ "$OPTION" == "busybox" ] ; then \
   cp -a /busybox/* /sbin/ ;\
   cp -a /busybox/* /usr/bin/ ;\
   cp -a /busybox/* /usr/sbin/ ;\
+  rm -f /bin/kmod ;\
 fi