install --ondev: ondev-prepare: pass pmb ver, ui

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
parent a7dbdf58bc
commit afeeeee4d7
No known key found for this signature in database
GPG Key ID: 5AE7F5513E0885CB
1 changed files with 3 additions and 1 deletions

View File

@ -545,7 +545,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