1

Every time when I'm updating Ubuntu with:

apt-get update && apt-get -y upgrade

I've needed to do this in MBP recovery mode:

mkdir /Volumes/EFI
mount -t msdos /dev/disk0s1 /Volumes/EFI
bless --mount /Volumes/EFI --setBoot --file /Volumes/EFI/EFI/refind/refind_x64.efi --shortform

How can I avoid this?

5
  • Welcome to Ask Different. Avoid is quite broad. One might patch Ubuntu to not break, patch OS to automate the bless, not update, run Ubuntu in virtualization. Would you either show a little more research on what you think avoiding looks like or be clear what result you wish to change?
    – bmike
    Commented Jun 15, 2020 at 21:43
  • I suppose a certain amount of this is unavoidable because once you authorize an installer to install - it is authorized to do whatever it's programmed to do. That said, I've seen Apple upgrades stage a 'boot coup' , but I've never seen Ubuntu do it. Is this a dual-boot system? Did you install GRUB w/ Ubuntu?
    – Seamus
    Commented Jun 16, 2020 at 4:24
  • @Seamus yes, GRUB installed with Ubuntu.
    – tchspprt
    Commented Jun 16, 2020 at 9:07
  • I don't know if there is a way to trace what is happening... a "boot debugger" so to speak - maybe @DavidAnderson knows of one? Absent that, I'd tend to suspect GRUB - but that is likely due to the fact that I've never had much "luck" with it. However: if this were me, I think I would try to remove GRUB, and re-install rEFInd.
    – Seamus
    Commented Jun 16, 2020 at 20:24
  • @Seamus already thinked about this but I want to use GRUB to save Ubuntu recovery mode. What can I else do?
    – tchspprt
    Commented Jun 18, 2020 at 7:17

1 Answer 1

1

Finally I found a solution:

umount /boot/efi

I'm running this automatically at Ubuntu startup. When EFI partition needed with running Ubuntu I can mount it manually. Now I don't need to "rebless" rEFInd after every Ubuntu upgrade.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .