summaryrefslogtreecommitdiffstats
path: root/install/autodetect
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-07-28 05:52:02 +0200
committerDave Reisner <dreisner@archlinux.org>2012-07-28 17:53:45 +0200
commit6a585950c5a014c35e449861b6b2040dca2d2516 (patch)
treecdf5aa65a7d55e54299baa6bca187ccf1dd43ad9 /install/autodetect
parentb8459a2ac067b05925d660fdf2b62855eae544da (diff)
downloadmkinitcpio-6a585950c5a014c35e449861b6b2040dca2d2516.tar.gz
mkinitcpio-6a585950c5a014c35e449861b6b2040dca2d2516.tar.xz
implement --moduleroot option
This might be useful for creating an initramfs image as part of a kernel package. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'install/autodetect')
-rw-r--r--install/autodetect2
1 files changed, 1 insertions, 1 deletions
diff --git a/install/autodetect b/install/autodetect
index b2d3687..20648e4 100644
--- a/install/autodetect
+++ b/install/autodetect
@@ -10,7 +10,7 @@ build() {
# treat this as an alias, since ext3 might be aliased to ext4.
IFS=$'\n' read -rd '' -a resolved < \
- <(modprobe -S "$KERNELVERSION" -R "$1" 2>/dev/null)
+ <(modprobe -M "$MODULEROOT" -S "$KERNELVERSION" -R "$1" 2>/dev/null)
if (( ${#resolved[*]} )); then
printf '%s\n' "${resolved[@]}" >>"$MODULE_FILE"