[mhwdcfg] fix call cmd
This commit is contained in:
parent
bba3ce09cd
commit
a2a47826d4
@ -4,7 +4,7 @@
|
|||||||
# === This file is part of Calamares - <http://github.com/calamares> ===
|
# === This file is part of Calamares - <http://github.com/calamares> ===
|
||||||
#
|
#
|
||||||
# Copyright 2016, Artoo <artoo@manjaro.org>
|
# Copyright 2016, Artoo <artoo@manjaro.org>
|
||||||
# Copyright 2016-2017, Philip Müller <philm@manjaro.org>
|
# Copyright 2016-2019, Philip Müller <philm@manjaro.org>
|
||||||
#
|
#
|
||||||
# Calamares is free software: you can redistribute it and/or modify
|
# Calamares is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
@ -73,10 +73,10 @@ class MhwdController:
|
|||||||
call(["mount", "-B", "/" + mp, join(self.root, mp)])
|
call(["mount", "-B", "/" + mp, join(self.root, mp)])
|
||||||
|
|
||||||
def rmdir(self, dir):
|
def rmdir(self, dir):
|
||||||
subprocess.call(["rm", "-Rf", join(self.root, dir)])
|
call(["rm", "-Rf", join(self.root, dir)])
|
||||||
|
|
||||||
def mkdir(self, dir):
|
def mkdir(self, dir):
|
||||||
subprocess.call(["mkdir", "-p", join(self.root, dir)])
|
call(["mkdir", "-p", join(self.root, dir)])
|
||||||
|
|
||||||
def configure(self, name, id):
|
def configure(self, name, id):
|
||||||
cmd = ["mhwd", "-a", str(name), str(self.driver), str(id).zfill(4)]
|
cmd = ["mhwd", "-a", str(name), str(self.driver), str(id).zfill(4)]
|
||||||
|
Loading…
Reference in New Issue
Block a user