mhwdcfg:clean up imports; use target_env_call()

This commit is contained in:
udeved 2016-09-12 18:33:13 +02:00
commit c70e91fa9a
2 changed files with 4 additions and 3 deletions

View File

@ -20,9 +20,9 @@
import libcalamares import libcalamares
from libcalamares.utils import check_target_env_call, target_env_call, debug from libcalamares.utils import target_env_call, debug
from os.path import join from os.path import join
from subprocess import check_call, call from subprocess import call
class MhwdController: class MhwdController:
def __init__(self): def __init__(self):
@ -74,7 +74,7 @@ class MhwdController:
cmd.extend(["--pmconfig", self.repo]) cmd.extend(["--pmconfig", self.repo])
self.mount("etc/resolv.conf") self.mount("etc/resolv.conf")
check_target_env_call(cmd) target_env_call(cmd)
if self.local: if self.local:
self.umount("opt") self.umount("opt")

View File

@ -1,6 +1,7 @@
--- ---
bus: bus:
- pci - pci
# - usb
identifier: identifier:
net: net: