X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/waydroid.git/blobdiff_plain/84880ff3c27176478274fcaf71e8d4fb619d2f50..c9ea5abff749e660c9aca0fcd224875464c3dacd:/tools/actions/upgrader.py diff --git a/tools/actions/upgrader.py b/tools/actions/upgrader.py index 1262637..7f71e1e 100644 --- a/tools/actions/upgrader.py +++ b/tools/actions/upgrader.py @@ -23,6 +23,7 @@ def migration(args): chmod_paths = ["cache_http", "host-permissions", "lxc", "images", "rootfs", "data", "waydroid_base.prop", "waydroid.prop", "waydroid.cfg"] tools.helpers.run.user(args, ["chmod", "-R", "g-w,o-w"] + [os.path.join(args.work, f) for f in chmod_paths], check=False) tools.helpers.run.user(args, ["chmod", "g-w,o-w", args.work], check=False) + os.remove(os.path.join(args.work, "session.cfg")) except: pass @@ -39,13 +40,14 @@ def upgrade(args): container.Stop(False) except Exception as e: logging.debug(e) + tools.actions.container_manager.stop(args) migration(args) helpers.drivers.loadBinderNodes(args) if not args.offline: 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)) + logging.info("Upgrade refused because Waydroid was configured to load pre-installed image from {}.".format(args.images_path)) helpers.drivers.probeAshmemDriver(args) helpers.lxc.setup_host_perms(args) helpers.lxc.set_lxc_config(args)