[mhwdcfg] mount also var
This commit is contained in:
parent
2797322f0b
commit
f95aa970e9
@ -70,12 +70,13 @@ class MhwdController:
|
|||||||
call(["umount", "-l", join(self.root, mp)])
|
call(["umount", "-l", join(self.root, mp)])
|
||||||
|
|
||||||
def mount(self, mp):
|
def mount(self, mp):
|
||||||
call(["mount", "-Br", "/" + mp, join(self.root, mp)])
|
call(["mount", "-B", "/" + mp, join(self.root, mp)])
|
||||||
|
|
||||||
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)]
|
||||||
if self.local:
|
if self.local:
|
||||||
self.mount("opt")
|
self.mount("opt")
|
||||||
|
self.mount("var")
|
||||||
cmd.extend(["--pmconfig", self.repo])
|
cmd.extend(["--pmconfig", self.repo])
|
||||||
|
|
||||||
self.mount("etc/resolv.conf")
|
self.mount("etc/resolv.conf")
|
||||||
@ -83,6 +84,7 @@ class MhwdController:
|
|||||||
|
|
||||||
if self.local:
|
if self.local:
|
||||||
self.umount("opt")
|
self.umount("opt")
|
||||||
|
self.umount("var")
|
||||||
self.umount("etc/resolv.conf")
|
self.umount("etc/resolv.conf")
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user