From 8e7ab357440faf8b77abe09826152d6c17eda6d6 Mon Sep 17 00:00:00 2001 From: Marc-Antoine Perennou Date: Tue, 7 Aug 2018 10:19:29 +0200 Subject: [PATCH] kernel-install: don't try to run depmod when kernel doesn't support modules Signed-off-by: Marc-Antoine Perennou --- src/kernel-install/50-depmod.install | 1 + 1 file changed, 1 insertion(+) diff --git a/src/kernel-install/50-depmod.install b/src/kernel-install/50-depmod.install index 56925c8..88f550a 100644 --- a/src/kernel-install/50-depmod.install +++ b/src/kernel-install/50-depmod.install @@ -6,6 +6,7 @@ case "$1" in add) + [[ -d /lib/modules/"$2"/kernel ]] || exit 0 exec depmod -a "$2" ;; remove) -- 2.7.4