Skip to content

Commit

Permalink
kernel-install: don't try to run depmod when kernel doesn't support m…
Browse files Browse the repository at this point in the history
…odules

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
  • Loading branch information
Keruspe authored and poettering committed Aug 8, 2018
1 parent cc2ff87 commit 8e7ab35
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/kernel-install/50-depmod.install
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

case "$1" in
add)
[[ -d /lib/modules/"$2"/kernel ]] || exit 0
exec depmod -a "$2"
;;
remove)
Expand Down

0 comments on commit 8e7ab35

Please sign in to comment.