[PATCH] [1/2] modprobe: Add -S option to use a different kernel version

Jeff Pohlmeyer yetanothergeek at gmail.com
Wed Feb 7 13:55:03 UTC 2024


(These two patches are somewhat related but do not depend on each other and
can be applied separately.)

Support -S to use another kernel version (66 bytes)

Normally modprobe will use version information from the currently running
kernel (similar to `uname -r`). This patch adds a compile-time configuration
option to enable the -S switch, which allows specifying a different kernel
version. This can be useful when used with the -D option to determine module
dependencies when building a new initramfs after a kernel upgrade.


function                                             old     new   delta
packed_usage                                       34776   34812     +36
modprobe_main                                        946     974     +28
.rodata                                           103911  103913      +2
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 66/0)               Total: 66 bytes
   text       data        bss        dec        hex    filename
1180482       7435       4984    1192901     1233c5    busybox_old
1180548       7435       4984    1192967     123407    busybox_unstripped
-------------- next part --------------
A non-text attachment was scrubbed...
Name: modprobe-add-set-version-option.patch
Type: text/x-patch
Size: 3579 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20240207/28402011/attachment.bin>


More information about the busybox mailing list