summaryrefslogtreecommitdiff
path: root/hook-functions
diff options
context:
space:
mode:
authormaximilian attems <maks@debian.org>2006-01-14 17:40:23 +0100
committermaximilian attems <maks@debian.org>2006-01-14 17:40:23 +0100
commit51aeb44deb330033ad26ffcb1494136a4d0fd159 (patch)
tree5fc7b493914256f80d90f2a2d58ac39b90821d28 /hook-functions
parentbce0c73e77b777ef03894d703c727dbf4b0f4298 (diff)
downloadinitramfs-tools-51aeb44deb330033ad26ffcb1494136a4d0fd159.tar.gz
initramfs-tools-51aeb44deb330033ad26ffcb1494136a4d0fd159.zip
fix MODULES=dep due to modprobe --show-depends printing not only insmod commands but also the install ones.
Diffstat (limited to 'hook-functions')
-rw-r--r--hook-functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/hook-functions b/hook-functions
index 9d0bc29..d3fe0a3 100644
--- a/hook-functions
+++ b/hook-functions
@@ -40,7 +40,7 @@ add_modules_from_file()
manual_add_modules()
{
- for mam_x in $(modprobe --set-version="${version}" --show-depends "${1}" 2>/dev/null | awk '{ print $2 }'); do
+ for mam_x in $(modprobe --set-version="${version}" --show-depends "${1}" 2>/dev/null | awk '/^insmod/ { print $2 }'); do
# Prune duplicates
if [ -e "${DESTDIR}/${mam_x}" ]; then
continue