Merge branch 'development' into 3.2.x-stable
This commit is contained in:
commit
931f6829ed
@ -70,19 +70,21 @@ class MhwdController:
|
||||
call(["umount", "-l", join(self.root, 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):
|
||||
cmd = ["mhwd", "-a", str(name), str(self.driver), str(id).zfill(4)]
|
||||
if self.local:
|
||||
self.mount("opt")
|
||||
self.mount("opt/mhwd")
|
||||
self.mount("var/lib/mhwd")
|
||||
cmd.extend(["--pmconfig", self.repo])
|
||||
|
||||
self.mount("etc/resolv.conf")
|
||||
target_env_call(cmd)
|
||||
|
||||
if self.local:
|
||||
self.umount("opt")
|
||||
self.umount("opt/mhwd")
|
||||
self.umount("var/lib/mhwd")
|
||||
self.umount("etc/resolv.conf")
|
||||
|
||||
def run(self):
|
||||
|
@ -16,4 +16,4 @@ driver: free
|
||||
|
||||
local: true
|
||||
|
||||
repo: /opt/pacman-mhwd.conf
|
||||
repo: /opt/mhwd/pacman-mhwd.conf
|
||||
|
@ -66,7 +66,7 @@ class ConfigController:
|
||||
subprocess.call(["umount", "-l", join(self.root, mp)])
|
||||
|
||||
def mount(self, mp):
|
||||
subprocess.call(["mount", "-Br", "/" + mp, join(self.root, mp)])
|
||||
subprocess.call(["mount", "-B", "/" + mp, join(self.root, mp)])
|
||||
|
||||
def run(self):
|
||||
self.init_keyring()
|
||||
@ -116,12 +116,12 @@ class ConfigController:
|
||||
if not office_package:
|
||||
libcalamares.utils.warning("no office suite selected, {!s}".format(office_package))
|
||||
else:
|
||||
# For PoC we added the Office Packages to mhwd-live overlay in 18.1-rc7
|
||||
cmd = ["pacman", "-S", office_package, "--noconfirm", "--config", "/opt/pacman-mhwd.conf" ]
|
||||
self.mount("opt")
|
||||
# For PoC we added the Office Packages to mhwd-live overlay in 18.1.0
|
||||
cmd = ["pacman", "-S", office_package, "--noconfirm", "--config", "/opt/mhwd/pacman-mhwd.conf" ]
|
||||
self.mount("opt/mhwd")
|
||||
self.mount("etc/resolv.conf")
|
||||
target_env_call(cmd)
|
||||
self.umount("opt")
|
||||
self.umount("opt/mhwd")
|
||||
self.umount("etc/resolv.conf")
|
||||
|
||||
return None
|
||||
|
Loading…
Reference in New Issue
Block a user