You are right - it’s the systemd units efi.mount and efi.automount apparently. If I stop them I can remove the directory, but it comes back when I restart the qube. And you can’t disable those units
Now that I know where to look I should be able to find a solution. Thanks.
Thanks. I did try that, but it didn’t seem to work. For some reason it still tried to read /efi (even though I’m only backing up the user home directory).
I think I’ll be okay once I sort out the systemd issue.
Okay - I sorted it out. I had to set the “Ignore EFI” attribute on the EFI partition on my Fedora 39 template - this prevents the mounting of the EFI partition on /efi.
In case anyone else is interested, the steps I used are:
Start a terminal session in the Fedora 39 template qube
Install gdisk: sudo dnf install gdisk
Run gdisk: sudo gdisk /dev/xvda
At the Command prompt type p list list the partitions. Note the number of the EFI System partion (in my case it was 1).
Enter x for expert mode.
At the Expert Command prompt enter a for set attributes mode.
Enter the EFI System partition number (e.g. 1)
Enter 1 at the Toggle which attribute field prompt.
Hit Enter to exit set attribute mode.
At the Expert Command prompt type w to save the changes.
So far it doesn’t seem to have had any unwanted side-affects
That’s an interesting thought. I don’t know anything about selinux unfortunately, but I might give it a try. For the moment, stopping the EFI partiton from being mounted seems to have done the trick.