From c52059a23e117eadf42bbe0b41735be54212b8c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Fri, 1 Nov 2013 02:25:22 +0100 Subject: [PATCH] core: unify handling dom0 case in --cdrom option --- core-modules/01QubesHVm.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core-modules/01QubesHVm.py b/core-modules/01QubesHVm.py index 2a17ed14..ea1b3634 100644 --- a/core-modules/01QubesHVm.py +++ b/core-modules/01QubesHVm.py @@ -165,6 +165,8 @@ class QubesHVm(QubesVm): if backend_split: backend_domain = "," + backend_split.group(1) drive_path = backend_split.group(2) + if backend_domain.lower() == "dom0": + backend_domain = "" # FIXME: os.stat will work only when backend in dom0... stat_res = None