mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 16:37:19 +09:00
kernel-install: skip 50-depmod if depmod is not available
Images might be built without any kernel module, and without installing depmod as it is not needed. Skip it. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1023607
This commit is contained in:
committed by
Luca Boccassi
parent
1824d3d6cc
commit
cda4d00dfc
@@ -26,6 +26,7 @@ KERNEL_VERSION="${2:?}"
|
||||
case "$COMMAND" in
|
||||
add)
|
||||
[ -d "/lib/modules/$KERNEL_VERSION/kernel" ] || exit 0
|
||||
command -v depmod >/dev/null || exit 0
|
||||
[ "$KERNEL_INSTALL_VERBOSE" -gt 0 ] && echo "+depmod -a $KERNEL_VERSION"
|
||||
exec depmod -a "$KERNEL_VERSION"
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user