From 6be8b16979e9c2e860ac4311e56711b7bcbc5f09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20M=C3=BCller?= Date: Mon, 2 Sep 2019 16:42:19 -0400 Subject: [PATCH] [modules] fix mkdir for 'opt/mhwd' --- src/modules/mhwdcfg/main.py | 2 +- src/modules/postcfg/main.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/mhwdcfg/main.py b/src/modules/mhwdcfg/main.py index 5335e3e87..da385ceee 100644 --- a/src/modules/mhwdcfg/main.py +++ b/src/modules/mhwdcfg/main.py @@ -76,7 +76,7 @@ class MhwdController: subprocess.call(["rm", "-Rf", join(self.root, dir)]) def mkdir(self, dir): - subprocess.call(["mkdir", "-p", "/" + mp, join(self.root, dir)]) + subprocess.call(["mkdir", "-p", join(self.root, dir)]) def configure(self, name, id): cmd = ["mhwd", "-a", str(name), str(self.driver), str(id).zfill(4)] diff --git a/src/modules/postcfg/main.py b/src/modules/postcfg/main.py index 90b454e16..9fec42289 100644 --- a/src/modules/postcfg/main.py +++ b/src/modules/postcfg/main.py @@ -72,7 +72,7 @@ class ConfigController: subprocess.call(["rm", "-Rf", join(self.root, dir)]) def mkdir(self, dir): - subprocess.call(["mkdir", "-p", "/" + mp, join(self.root, dir)]) + subprocess.call(["mkdir", "-p", join(self.root, dir)]) def run(self): self.init_keyring()