X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/waydroid.git/blobdiff_plain/431b55f16c767aa4e42a273a50f98c058f02277b..926c3a3f0ab15164edf6518fef00f3cd099a2683:/tools/actions/container_manager.py diff --git a/tools/actions/container_manager.py b/tools/actions/container_manager.py index b527c73..1b9480c 100644 --- a/tools/actions/container_manager.py +++ b/tools/actions/container_manager.py @@ -137,7 +137,8 @@ def start(args): if which("start"): command = ["start", "cgroup-lite"] tools.helpers.run.user(args, command, check=False) - helpers.mount.umount_all(args, "/sys/fs/cgroup/schedtune") + command = ["umount", "-l", "/sys/fs/cgroup/schedtune"] + tools.helpers.run.user(args, command, check=False) #TODO: remove NFC hacks if which("stop"): @@ -208,6 +209,12 @@ def stop(args): command = ["kill", "-9", pid] tools.helpers.run.user(args, command, check=False) + # Umount rootfs + helpers.images.umount_rootfs(args) + + # Umount data + helpers.mount.umount_all(args, tools.config.defaults["data"]) + else: logging.error("WayDroid container is {}".format(status))