We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c17cab commit 5ea5230Copy full SHA for 5ea5230
1 file changed
src/main.py
@@ -379,6 +379,19 @@ def bless(self):
379
check=True)
380
break
381
except subprocess.CalledProcessError:
382
+ if self.admin_password.strip() != self.admin_password:
383
+ p_warning("Failed to run bless.")
384
+ p_warning("This is probably because your password starts or ends with a space,")
385
+ p_warning("and that doesn't work due to a silly Apple bug.")
386
+ p_warning("Let's try a different way. Sorry, you'll have to type it in again.")
387
+ try:
388
+ subprocess.run(["bless", "--setBoot",
389
+ "--device", "/dev/" + self.ins.osi.sys_volume,
390
+ "--user", self.admin_user], check=True)
391
+ print()
392
+ return
393
+ except subprocess.CalledProcessError:
394
+ pass
395
p_error("Failed to run bless. Press enter to try again.")
396
self.input()
397
0 commit comments