X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Modules%2FFilesystems%2FInitRD%2FGenerateInitRD.php;h=a7152cc0950250e628995fc03e3826663e345d45;hb=c970e359b39a2fea47c7dfc956ac09220f187c7a;hp=4632cc0118d892eb98ca2a37bcac3363c257d35e;hpb=51121b83f47e7619a7c64d52c8dac5c78b9fd7ee;p=tpg%2Facess2.git 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",