X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/waydroid.git/blobdiff_plain/1f0393876d891d0e32a995d0bf7259cc6505afdc..c71d3e781097885f035fafb77101a5c9f8f49f5a:/tools/actions/upgrader.py diff --git a/tools/actions/upgrader.py b/tools/actions/upgrader.py index cb1aaa5..b788f50 100644 --- a/tools/actions/upgrader.py +++ b/tools/actions/upgrader.py @@ -25,11 +25,15 @@ def upgrade(args): helpers.images.umount_rootfs(args) helpers.drivers.loadBinderNodes(args) if not args.offline: - helpers.images.get(args) + if args.images_path not in tools.config.defaults["preinstalled_images_paths"]: + helpers.images.get(args) + else: + logging.info("Upgrade refused because a pre-installed image is detected at {}.".format(args.images_path)) helpers.lxc.setup_host_perms(args) helpers.lxc.set_lxc_config(args) helpers.lxc.make_base_props(args) if status != "STOPPED": logging.info("Starting container") helpers.images.mount_rootfs(args, args.images_path) + helpers.protocol.set_aidl_version(args) helpers.lxc.start(args)