]> glassweightruler.freedombox.rocks Git - waydroid.git/blobdiff - tools/actions/initializer.py
Remove RW image overlay when upgrading images
[waydroid.git] / tools / actions / initializer.py
index 31b4fc90253ca720b6a0440b3e1b426540e049a0..fdc4a40a3c6a3a6d58f654114158722e3a6086fb 100644 (file)
@@ -117,6 +117,8 @@ def init(args):
         helpers.images.umount_rootfs(args)
         if args.images_path not in tools.config.defaults["preinstalled_images_paths"]:
             helpers.images.get(args)
+        else:
+            helpers.images.remove_overlay(args)
         if not os.path.isdir(tools.config.defaults["rootfs"]):
             os.mkdir(tools.config.defaults["rootfs"])
         if not os.path.isdir(tools.config.defaults["overlay"]):