Skip to content

Commit

Permalink
Add option to show diskutil list output
Browse files Browse the repository at this point in the history
  • Loading branch information
corpnewt authored Dec 2, 2022
1 parent d872228 commit 180dc51
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions MountEFI.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ def get_efi(self):
disk_string += "B. Mount the Boot Drive's EFI\n"
if self.boot_manager:
disk_string += "C. Mount the Booted EFI (Clover/OC)\n"
disk_string += "L. Show diskutil list Output\n"
dd = self.settings.get("default_disk")
dd = self.boot_manager if dd=="clover" else "/" if dd=="boot" else dd
di = self.d.get_identifier(dd)
Expand Down Expand Up @@ -193,6 +194,14 @@ def get_efi(self):
elif menu == "c" and self.boot_manager:
disk = self.boot_manager
iden = self.d.get_efi(self.boot_manager)
elif menu == "l":
dl_message = "\n"+(self.d.diskutil_list or "diskutil list output was not found!").strip()+"\n"
if self.settings.get("resize_window",True):
self.u.resize(80,max(len(dl_message.split("\n"))+pad,24))
self.u.head("Diskutil List Output")
print(dl_message)
self.u.grab("Press [enter] to return...")
continue
elif menu == "m":
self.after_mount()
continue
Expand Down

0 comments on commit 180dc51

Please sign in to comment.