install --ondev: ondev-prepare: pass pmb ver, ui (MR 1953)

Pass the pmbootstrap version and user interface, so it can be checked /
displayed in postmarketos-ondev.
This commit is contained in:
Oliver Smith 2020-06-29 20:17:29 +02:00 committed by Bart Ribbers
parent f9f5640d82
commit 6fb194795a
No known key found for this signature in database
GPG Key ID: 699D16185DAFAE61
1 changed files with 3 additions and 1 deletions

View File

@ -537,7 +537,9 @@ def install_on_device_installer(args, step, steps):
"ONDEV_CHANNEL_BRANCH_APORTS": channel_cfg["branch_aports"],
"ONDEV_CHANNEL_BRANCH_PMAPORTS": channel_cfg["branch_pmaports"],
"ONDEV_CHANNEL_DESCRIPTION": channel_cfg["description"],
"ONDEV_CHANNEL_MIRRORDIR_ALPINE": channel_cfg["mirrordir_alpine"]}
"ONDEV_CHANNEL_MIRRORDIR_ALPINE": channel_cfg["mirrordir_alpine"],
"ONDEV_PMBOOTSTRAP_VERSION": pmb.config.version,
"ONDEV_UI": args.ui}
pmb.chroot.root(args, ["ondev-prepare"], suffix_installer, env=env)
# Remove $DEVICE-boot.img (we will generate a new one if --split was