[android-recovery-zip] Add missing apk keys (#747)

This commit is contained in:
drebrez 2017-10-14 17:41:12 +02:00 committed by Oliver Smith
parent f00c857611
commit 9f4522069a
2 changed files with 7 additions and 3 deletions

View File

@ -1,10 +1,10 @@
pkgname=postmarketos-android-recovery-installer
pkgver=0.0.5
pkgver=0.0.6
pkgrel=0
pkgdesc="TWRP compatible postmarketOS installer script"
url="https://github.com/postmarketOS"
# multipath-tools: kpartx
depends="busybox-extras lddtree cryptsetup multipath-tools device-mapper parted util-linux zip e2fsprogs"
depends="busybox-extras lddtree cryptsetup multipath-tools device-mapper parted util-linux zip e2fsprogs tar"
source="build_zip.sh
update-binary
pmos_install

View File

@ -66,8 +66,12 @@ def create_zip(args, suffix):
# Move config file from /tmp/ to zip root
["mv", "/tmp/install_options", "install_options"],
# Create tar archive of the rootfs
["tar", "-pczf", "rootfs.tar.gz", "--exclude",
["tar", "-pcf", "rootfs.tar", "--exclude",
"./home/" + args.user + "/*", "-C", rootfs, "."],
# Append packages keys
["tar", "-prf", "rootfs.tar", "-C", "/", "./etc/apk/keys"],
# Compress with -1 for speed improvement
["gzip", "-f1", "rootfs.tar"],
["build-recovery-zip"]]
for command in commands:
pmb.chroot.root(args, command, suffix, working_dir=zip_root)