CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
makeRootfs.sh: adapted to install filesystem port before the rest aarch64
authorVictor Martinez <pitillo@ono.com>
Thu, 6 Apr 2017 23:00:59 +0000 (23:00 +0000)
committerVictor Martinez <pitillo@ono.com>
Thu, 6 Apr 2017 23:00:59 +0000 (23:00 +0000)
makeRootfs.sh

index 3a4054042a26860727073792aba9a7586c8a2e74..af31821bdd64f6a6254f5aaf7d3ed10f757b4e9f 100755 (executable)
@@ -47,7 +47,8 @@ checkVars() {
   TMPDIR="$(cd $TMPDIR; pwd)"
   PKGDIR="$(cd $PKGDIR; pwd)"
   RELEASE_DIR="$(cd $RELEASE_DIR; pwd)"
-  [ -z "$PACKAGES" ] && PACKAGES="$(find $PKGDIR -type f -name '*#*pkg.tar.*')"
+  [ -z "$PACKAGES" ] && PACKAGES="$(find $PKGDIR -type f -name '*#*pkg.tar.*' ! -name 'filesystem#*pkg.tar.*')"
+  [ -z "$FILESYSTEM" ] && FILESYSTEM="$(find $PKGDIR -type f -name 'filesystem#*pkg.tar.*')"
 }
 
 # global variables
@@ -65,6 +66,9 @@ sudo chmod 0444 $TMPDIR/var/lib/pkg/db
 
 pkgnum=0
 echo "+ Installing packages..."
+echo "+ Installing filesystem port"
+sudo pkgadd -r $TMPDIR $FILESYSTEM || msgError "failed to install $FILESYSTEM package"
+
 for pkg in $PACKAGES; do
   sudo pkgadd -r $TMPDIR $pkg || msgError "failed to install $pkg"
   let pkgnum=$pkgnum+1