From: John Hodge Date: Wed, 12 Oct 2011 03:26:56 +0000 (+0800) Subject: Modules/InitRD - Fixed dependencies in InitRD script X-Git-Tag: rel0.12~1 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=c970e359b39a2fea47c7dfc956ac09220f187c7a;p=tpg%2Facess2.git Modules/InitRD - Fixed dependencies in InitRD script --- diff --git a/Modules/Filesystems/InitRD/GenerateInitRD.php b/Modules/Filesystems/InitRD/GenerateInitRD.php index 4632cc01..a7152cc0 100644 --- a/Modules/Filesystems/InitRD/GenerateInitRD.php +++ b/Modules/Filesystems/InitRD/GenerateInitRD.php @@ -46,7 +46,6 @@ foreach($lines as $line) if(preg_match('/^File\s+"([^"]+)"\s+"([^"]+)"$/', $line, $matches)) { $lStack[$lDepth][1][] = array($matches[1], $matches[2]); - $gDependencies[] = $matches[2]; continue; } echo "ERROR: $line\n"; @@ -68,7 +67,7 @@ function hd8($fp) function ProcessFolder($prefix, $items) { - global $gOutput; + global $gOutput, $gDependencies; global $ACESSDIR, $ARCH; foreach($items as $i=>$item) { @@ -107,6 +106,8 @@ EOF; $path = str_replace("__FS__", "$ACESSDIR/Usermode/Filesystem", $path); echo $path,"\n"; // --- + + $gDependencies[] = $path; if(!file_exists($path)) { echo "ERROR: '{$path}' does not exist\n",