From 6a585950c5a014c35e449861b6b2040dca2d2516 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Fri, 27 Jul 2012 23:52:02 -0400 Subject: implement --moduleroot option This might be useful for creating an initramfs image as part of a kernel package. Signed-off-by: Dave Reisner --- install/autodetect | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'install/autodetect') 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" -- cgit v1.2.3-24-g4f1b