summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--strata/bsp-x86_32-generic/linux-x86-32-generic.morph6
-rw-r--r--strata/bsp-x86_64-generic/linux-x86-64-generic.morph6
2 files changed, 10 insertions, 2 deletions
diff --git a/strata/bsp-x86_32-generic/linux-x86-32-generic.morph b/strata/bsp-x86_32-generic/linux-x86-32-generic.morph
index 3d141fd9..529b74bd 100644
--- a/strata/bsp-x86_32-generic/linux-x86-32-generic.morph
+++ b/strata/bsp-x86_32-generic/linux-x86-32-generic.morph
@@ -290,5 +290,9 @@ install-commands:
) | cpio -0pumd "$DESTDIR$PREFIX/src/linux"
system-integration:
linux-x86-32-generic-misc:
+ # This is required for any modules to work correctly. However, it depends
+ # `depmod` from the 'kmod' chunk in the 'foundation' stratum, so it runs
+ # conditionally on `depmod` existing to avoid breaking in
+ # minimal-system-x86_32.
00-depmod:
- - (cd /lib/modules && for version in *; do depmod -a "$version"; done)
+ - if which depmod; then (cd /lib/modules && for version in *; do depmod -a "$version"; done) fi
diff --git a/strata/bsp-x86_64-generic/linux-x86-64-generic.morph b/strata/bsp-x86_64-generic/linux-x86-64-generic.morph
index d7206b2f..1a3d388b 100644
--- a/strata/bsp-x86_64-generic/linux-x86-64-generic.morph
+++ b/strata/bsp-x86_64-generic/linux-x86-64-generic.morph
@@ -290,5 +290,9 @@ install-commands:
) | cpio -0pumd "$DESTDIR$PREFIX/src/linux"
system-integration:
linux-x86-64-generic-misc:
+ # This is required for any modules to work correctly. However, it depends
+ # `depmod` from the 'kmod' chunk in the 'foundation' stratum, so it runs
+ # conditionally on `depmod` existing to avoid breaking in
+ # minimal-system-x86_64.
00-depmod:
- - (cd /lib/modules && for version in *; do depmod -a "$version"; done)
+ - if which depmod; then (cd /lib/modules && for version in *; do depmod -a "$version"; done) fi