I'm working on a MacBook Air, that's currently booting to macOS High Sierra 10.13.6. It also has an Ubuntu 16.04 partition, that I am currently trying to reach.
I was trying reinstall rEFInd, which due to SIP is done from the recovery partition. It failed because;
-bash: ./refind-install: /usr/bin/env: bad interpreter: No such file or directory
Which was thrown by the
#!/usr/bin/env bash at the top of the install script.
I had a look and indeed there is no
/usr/bin/env in my recovery partition. There is one on the main partition. This is the terminal in the recovery partition:
[-bash-3.2# ls /usr/bin/env ls: /usr/bin/env: No such file or directory [-bash-3.2# ls /Volumes/Macintosh\ HD/usr/bin/env /Volumes/Macintosh\ HD/usr/bin/env
Now the end goal it to reinstall rEFInd (I had it before, but updating macOS changed the boot order so it no longer boots correctly), but my question right now is: Is it normal to not have
/usr/bin/env in the recovery partition?
The fact that the rEFInd script expects it to be there makes me wonder if I have broken something.