From: GDR! Date: Tue, 19 Oct 2021 10:54:16 +0000 (+0200) Subject: Resume initialization if not complete X-Git-Tag: 1.2.1~13 X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/waydroid.git/commitdiff_plain/26cedf124da42b6296aa3d1827eb5d7b55ac25e4?ds=sidebyside Resume initialization if not complete Signed-off-by: GDR! --- diff --git a/tools/actions/initializer.py b/tools/actions/initializer.py index 6287810..f8cce6e 100644 --- a/tools/actions/initializer.py +++ b/tools/actions/initializer.py @@ -81,7 +81,7 @@ def setup_config(args): tools.config.save(args, cfg) def init(args): - if not os.path.isfile(args.config) or args.force: + if not os.path.isfile(args.config) or not os.path.isdir(tools.config.defaults["rootfs"]) or args.force: setup_config(args) status = "STOPPED" if os.path.exists(tools.config.defaults["lxc"] + "/waydroid"):