Commit 83aab393 authored by Natanael Copa's avatar Natanael Copa
Browse files

main/busybox: avoid run depmod if kmod is installed

dont run busybox depmod if we have kmod. This prevents us from running
depmod twice.
parent 8cefef91
......@@ -3,7 +3,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=busybox
pkgver=1.31.1
pkgrel=6
pkgrel=7
pkgdesc="Size optimized toolbox of many common UNIX utilities"
url="https://busybox.net/"
arch="all"
......
......@@ -5,7 +5,10 @@ do_bb_install=
for i in "$@"; do
case "$i" in
/lib/modules/*)
if [ -d "$i" ]; then
# don't run busybox dpemod if we have kmod installed
# we dont need to run it twice.
target=$(readlink -f $(command -v depmod))
if [ -d "$i" ] && [ "$target" = "/bin/busybox" ]; then
/bin/busybox depmod ${i#/lib/modules/}
fi
;;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment