@@ -20,7 +20,46 @@ echo "VGID: $VGID"
2020echo " System volume: $system_dir "
2121echo
2222
23- if ! bputil -d -v " $VGID " | grep -q ' one true recoveryOS' ; then
23+ bputil -d -v " $VGID " > /tmp/bp.txt
24+
25+ if ! grep -q ' : Paired' /tmp/bp.txt; then
26+ echo " Your system did not boot into the correct recoveryOS."
27+ echo
28+ echo " Each OS in your machine comes with its own copy of recoveryOS."
29+ echo " In order to complete the installation, we need to boot into"
30+ echo " the brand new recoveryOS that matches the OS which you are"
31+ echo " installing. The final installation step cannot be completed from"
32+ echo " a different recoveryOS."
33+ echo
34+ echo " Normally this should happen automatically after the initial"
35+ echo " installer sets up your new OS as the default boot option,"
36+ echo " but it seems something went wrong there. Let's try that again."
37+ echo
38+ echo " Press enter to continue."
39+ read
40+
41+ while ! bless --setBoot --mount " $system_dir " ; do
42+ echo
43+ echo " bless failed. Did you mistype your password?"
44+ echo " Press enter to try again."
45+ read
46+ done
47+
48+ echo
49+ echo " Phew, hopefully that fixed it!"
50+ echo
51+ echo " Your system will now shut down. Once the screen goes blank,"
52+ echo " please wait 10 seconds, then press the power button and do not"
53+ echo " release it until you see the 'Entering startup options...'"
54+ echo " message, then select '$os_name ' again."
55+ echo
56+ echo " Press enter to shut down your system."
57+ read
58+ shutdown -h now
59+ exit 1
60+ fi
61+
62+ if ! grep -q ' one true recoveryOS' /tmp/bp.txt; then
2463 echo " Your system did not boot in One True RecoveryOS (1TR) mode."
2564 echo
2665 echo " To finish the installation, the system must be in this special"
0 commit comments