diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-03-27 15:32:40 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-03-27 15:32:40 +0000 |
commit | bbb7f05b06edf4fdb5158e58fa456a3bc6d9418f (patch) | |
tree | 3a3879695db480bfbf8b8456d32cc8c7648f54dd /main/mkinitfs/0001-mkinitfs-fix-kernel-module-dependency-tracing.patch | |
parent | c5e3c092a8f9634c14e8fe7b57addd1a771fc24d (diff) | |
download | aports-bbb7f05b06edf4fdb5158e58fa456a3bc6d9418f.tar.bz2 aports-bbb7f05b06edf4fdb5158e58fa456a3bc6d9418f.tar.xz |
main/mkinitfs: fix kernel module dependencies
Diffstat (limited to 'main/mkinitfs/0001-mkinitfs-fix-kernel-module-dependency-tracing.patch')
-rw-r--r-- | main/mkinitfs/0001-mkinitfs-fix-kernel-module-dependency-tracing.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/main/mkinitfs/0001-mkinitfs-fix-kernel-module-dependency-tracing.patch b/main/mkinitfs/0001-mkinitfs-fix-kernel-module-dependency-tracing.patch new file mode 100644 index 0000000000..1eb4af8f9d --- /dev/null +++ b/main/mkinitfs/0001-mkinitfs-fix-kernel-module-dependency-tracing.patch @@ -0,0 +1,36 @@ +From f3c65536e02764486f1dd0082c0537377ee8720b Mon Sep 17 00:00:00 2001 +From: Natanael Copa <ncopa@alpinelinux.org> +Date: Thu, 27 Mar 2014 15:28:25 +0000 +Subject: [PATCH] mkinitfs: fix kernel module dependency tracing + +When searching kernel module depedencies we need to that relative +kerneldir and not relative basedir. +--- + mkinitfs.in | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/mkinitfs.in b/mkinitfs.in +index cd10359..fc7cf34 100755 +--- a/mkinitfs.in ++++ b/mkinitfs.in +@@ -68,7 +68,7 @@ function recursedeps(k, j, dep) { + split(deps[k], dep, " "); + for (j in dep) + recursedeps(dep[j]); +- print(k); ++ print(prepend k); + } + + BEGIN { +@@ -98,7 +98,7 @@ find_kmods() { + local oldpwd="$PWD" + cd "$kerneldir" || return 1 + for file in $(feature_files "${kerneldir}/" modules); do +- echo ${file#$basedir} ++ echo ${file#${kerneldir%/}/} + done | find_kmod_deps + cd "$oldpwd" + } +-- +1.9.1 + |