Skip to content

Commit 76a05a8

Browse files
committed
update root for 26.4B1
1 parent ed5f306 commit 76a05a8

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

oclp_r/support/reroute_payloads.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def _setup_tmp_disk_image(self) -> None:
4242
logging.info(self.trans["Creating payloads directory"])
4343
Path(self.temp_dir.name / Path("payloads")).mkdir(parents=True, exist_ok=True)
4444
self._unmount_active_dmgs(unmount_all_active=False)
45-
output = subprocess.run(
45+
output = subprocess_wrapper.run_as_root(
4646
[
4747
"/usr/bin/hdiutil", "attach", "-noverify", f"{self.constants.payload_path_dmg}",
4848
"-mountpoint", Path(self.temp_dir.name / Path("payloads")),
@@ -86,13 +86,13 @@ def _unmount_active_dmgs(self, unmount_all_active: bool = True) -> None:
8686
if "shadow-path" in image:
8787
if self.temp_dir.name in image["shadow-path"]:
8888
logging.info(self.trans["Unmounting personal {0}"].format(variant))
89-
subprocess.run(
89+
subprocess_wrapper.run_as_root(
9090
["/usr/bin/hdiutil", "detach", image["system-entities"][0]["dev-entry"], "-force"],
9191
stdout=subprocess.PIPE, stderr=subprocess.STDOUT
9292
)
9393
else:
9494
logging.info(f"Unmounting {variant} at: {image['system-entities'][0]['dev-entry']}")
95-
subprocess.run(
95+
subprocess_wrapper.run_as_root(
9696
["/usr/bin/hdiutil", "detach", image["system-entities"][0]["dev-entry"], "-force"],
9797
stdout=subprocess.PIPE, stderr=subprocess.STDOUT
9898
)

oclp_r/sys_patch/utilities/dmg_mount.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def _mount_universal_binaries_dmg(self) -> bool:
3131
logging.info(self.trans["- PatcherSupportPkg resources missing, Patcher likely corrupted!!!"])
3232
return False
3333

34-
output = subprocess.run(
34+
output = subprocess_wrapper.run_as_root(
3535
[
3636
"/usr/bin/hdiutil", "attach", "-noverify", f"{self.constants.payload_local_binaries_root_path_dmg}",
3737
"-mountpoint", Path(self.constants.payload_path / Path("Universal-Binaries")),
@@ -65,7 +65,7 @@ def _mount_hackdoc_internal_resources_dmg(self) -> bool:
6565

6666
for i in range(3):
6767
key = self._request_decryption_key(i)
68-
output = subprocess.run(
68+
output = subprocess_wrapper.run_as_root(
6969
[
7070
"/usr/bin/hdiutil", "attach", "-noverify", f"{self.constants.overlay_psp_path_dmg}",
7171
"-mountpoint", Path(self.constants.payload_path / Path("HackdocInternal")),

0 commit comments

Comments
 (0)