forked from Mirror/pmbootstrap
Run recovery installer in chroot (#901)
The recovery installer now has as few dependencies on the Android recovery system as possible.
This commit is contained in:
parent
4c7793e766
commit
d9e7a3d7de
9 changed files with 131 additions and 95 deletions
|
@ -64,7 +64,7 @@ def create_zip(args, suffix):
|
|||
|
||||
commands = [
|
||||
# Move config file from /tmp/ to zip root
|
||||
["mv", "/tmp/install_options", "install_options"],
|
||||
["mv", "/tmp/install_options", "chroot/install_options"],
|
||||
# Create tar archive of the rootfs
|
||||
["tar", "-pcf", "rootfs.tar", "--exclude",
|
||||
"./home/" + args.user + "/*", "-C", rootfs, "."],
|
||||
|
@ -72,6 +72,6 @@ def create_zip(args, suffix):
|
|||
["tar", "-prf", "rootfs.tar", "-C", "/", "./etc/apk/keys"],
|
||||
# Compress with -1 for speed improvement
|
||||
["gzip", "-f1", "rootfs.tar"],
|
||||
["build-recovery-zip"]]
|
||||
["build-recovery-zip", args.device]]
|
||||
for command in commands:
|
||||
pmb.chroot.root(args, command, suffix, working_dir=zip_root)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue