aboutsummaryrefslogtreecommitdiffstats
path: root/main/mkinitfs/mod-deps.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/mkinitfs/mod-deps.patch')
-rw-r--r--main/mkinitfs/mod-deps.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/main/mkinitfs/mod-deps.patch b/main/mkinitfs/mod-deps.patch
new file mode 100644
index 0000000000..bc08d61859
--- /dev/null
+++ b/main/mkinitfs/mod-deps.patch
@@ -0,0 +1,23 @@
+commit 18f70462c7fefe7cadcc1cd618b88de565a0f717
+Author: Natanael Copa <ncopa@alpinelinux.org>
+Date: Mon Aug 9 15:56:35 2010 +0000
+
+ mkinitfs: handle the case when modules.dep has full path
+
+ we do that by simply removing the prepend string
+
+diff --git a/mkinitfs.in b/mkinitfs.in
+index c3d8354..8246d07 100755
+--- a/mkinitfs.in
++++ b/mkinitfs.in
+@@ -92,6 +92,10 @@ BEGIN {
+ modulesdep="modules.dep";
+ FS = ": ";
+ while ( (getline < modulesdep) > 0) {
++ if (substr($0,1,1) == "/") {
++ gsub(prepend, "", $1);
++ gsub(prepend, "", $2);
++ }
+ deps[$1] = $2;
+ }
+ }