mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-20 22:20:53 +10:00
Remove extra user input prompts during patching
This commit is contained in:
@@ -211,8 +211,8 @@ class PatchSysVolume:
|
|||||||
self.manual_root_patch_revert()
|
self.manual_root_patch_revert()
|
||||||
|
|
||||||
def rebuild_snapshot(self):
|
def rebuild_snapshot(self):
|
||||||
if self.constants.gui_mode is False:
|
# if self.constants.gui_mode is False:
|
||||||
input("Press [ENTER] to continue with cache rebuild: ")
|
# input("Press [ENTER] to continue with cache rebuild: ")
|
||||||
print("- Rebuilding Kernel Cache (This may take some time)")
|
print("- Rebuilding Kernel Cache (This may take some time)")
|
||||||
if self.constants.detected_os > os_data.os_data.catalina:
|
if self.constants.detected_os > os_data.os_data.catalina:
|
||||||
result = utilities.elevated(["kmutil", "install", "--volume-root", self.mount_location, "--update-all"], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
result = utilities.elevated(["kmutil", "install", "--volume-root", self.mount_location, "--update-all"], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
||||||
@@ -234,11 +234,11 @@ class PatchSysVolume:
|
|||||||
else:
|
else:
|
||||||
self.success_status = True
|
self.success_status = True
|
||||||
print("- Successfully built new kernel cache")
|
print("- Successfully built new kernel cache")
|
||||||
if self.constants.gui_mode is False:
|
# if self.constants.gui_mode is False:
|
||||||
if self.constants.detected_os > os_data.os_data.catalina:
|
# if self.constants.detected_os > os_data.os_data.catalina:
|
||||||
input("Press [ENTER] to continue with snapshotting")
|
# input("Press [ENTER] to continue with snapshotting")
|
||||||
else:
|
# else:
|
||||||
input("Press [ENTER] to continue with kernel and dyld cache merging")
|
# input("Press [ENTER] to continue with kernel and dyld cache merging")
|
||||||
if self.constants.detected_os > os_data.os_data.catalina:
|
if self.constants.detected_os > os_data.os_data.catalina:
|
||||||
print("- Creating new APFS snapshot")
|
print("- Creating new APFS snapshot")
|
||||||
bless = utilities.elevated(
|
bless = utilities.elevated(
|
||||||
@@ -661,8 +661,8 @@ set million colour before rebooting"""
|
|||||||
Path(self.constants.payload_apple_root_path_zip).unlink()
|
Path(self.constants.payload_apple_root_path_zip).unlink()
|
||||||
print("- Binaries downloaded to:")
|
print("- Binaries downloaded to:")
|
||||||
print(self.constants.payload_path)
|
print(self.constants.payload_path)
|
||||||
if self.constants.gui_mode is False:
|
# if self.constants.gui_mode is False:
|
||||||
input("Press [ENTER] to continue")
|
# input("Press [ENTER] to continue")
|
||||||
except zipfile.BadZipFile:
|
except zipfile.BadZipFile:
|
||||||
print("- Couldn't unzip")
|
print("- Couldn't unzip")
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user