]> glassweightruler.freedombox.rocks Git - waydroid.git/blobdiff - tools/actions/upgrader.py
clipboard: Return empty string if error
[waydroid.git] / tools / actions / upgrader.py
index cb1aaa5bdd66fc9c7f3c7d0fd24e0ea86dc86585..b788f5051d645f188d3bc769cfd49901b0c0de49 100644 (file)
@@ -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)