[android-recovery-zip] Add missing apk keys (#747)
This commit is contained in:
parent
f00c857611
commit
9f4522069a
|
@ -1,10 +1,10 @@
|
||||||
pkgname=postmarketos-android-recovery-installer
|
pkgname=postmarketos-android-recovery-installer
|
||||||
pkgver=0.0.5
|
pkgver=0.0.6
|
||||||
pkgrel=0
|
pkgrel=0
|
||||||
pkgdesc="TWRP compatible postmarketOS installer script"
|
pkgdesc="TWRP compatible postmarketOS installer script"
|
||||||
url="https://github.com/postmarketOS"
|
url="https://github.com/postmarketOS"
|
||||||
# multipath-tools: kpartx
|
# 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
|
source="build_zip.sh
|
||||||
update-binary
|
update-binary
|
||||||
pmos_install
|
pmos_install
|
||||||
|
|
|
@ -66,8 +66,12 @@ def create_zip(args, suffix):
|
||||||
# Move config file from /tmp/ to zip root
|
# Move config file from /tmp/ to zip root
|
||||||
["mv", "/tmp/install_options", "install_options"],
|
["mv", "/tmp/install_options", "install_options"],
|
||||||
# Create tar archive of the rootfs
|
# Create tar archive of the rootfs
|
||||||
["tar", "-pczf", "rootfs.tar.gz", "--exclude",
|
["tar", "-pcf", "rootfs.tar", "--exclude",
|
||||||
"./home/" + args.user + "/*", "-C", rootfs, "."],
|
"./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"]]
|
["build-recovery-zip"]]
|
||||||
for command in commands:
|
for command in commands:
|
||||||
pmb.chroot.root(args, command, suffix, working_dir=zip_root)
|
pmb.chroot.root(args, command, suffix, working_dir=zip_root)
|
||||||
|
|
Loading…
Reference in New Issue