home: hub: mkinitfs

Download patch

ref: 18f70462c7fefe7cadcc1cd618b88de565a0f717
parent: a655ad907ab31c2678b085d3646d7528b88664d0
author: Natanael Copa <ncopa@alpinelinux.org>
date: Mon Aug 9 10:56:35 CDT 2010

mkinitfs: handle the case when modules.dep has full path

we do that by simply removing the prepend string

--- a/mkinitfs.in
+++ b/mkinitfs.in
@@ -92,6 +92,10 @@
 		modulesdep="modules.dep";
 	FS = ": ";
 	while ( (getline < modulesdep) > 0) {
+		if (substr($0,1,1) == "/") {
+			gsub(prepend, "", $1);
+			gsub(prepend, "", $2);
+		}
 		deps[$1] = $2;
 	}
 }