diff options
author | Marc-Antoine Perennou <Marc-Antoine@Perennou.com> | 2018-08-07 10:19:29 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-08-08 10:42:04 +0200 |
commit | 8e7ab357440faf8b77abe09826152d6c17eda6d6 (patch) | |
tree | f820d516bd3b4c38b05d33c829fa4be053d22957 /src/kernel-install | |
parent | link: fix type for link-config's "features" array of tristates (diff) | |
download | systemd-8e7ab357440faf8b77abe09826152d6c17eda6d6.tar.xz systemd-8e7ab357440faf8b77abe09826152d6c17eda6d6.zip |
kernel-install: don't try to run depmod when kernel doesn't support modules
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
Diffstat (limited to 'src/kernel-install')
-rw-r--r-- | src/kernel-install/50-depmod.install | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/kernel-install/50-depmod.install b/src/kernel-install/50-depmod.install index 56925c8a5d..88f550a486 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) |