Ubuntu 20.04: Disable grub-initrd-fallback.service

This is the service for /boot/grub/grubenv which does not work on
mirrored or raidz topologies.  Disabling this keeps it from blocking
subsequent mounts of /boot/grub if that mount ever fails.

Signed-off-by: Richard Laager <rlaager@wiktel.com>
This commit is contained in:
Richard Laager
2020-05-30 17:42:03 -05:00
parent 9c2f4a04c1
commit 12aa83791c

View File

@@ -902,6 +902,21 @@ Step 5: GRUB Installation
grub-install --target=x86_64-efi --efi-directory=/boot/efi2 \ grub-install --target=x86_64-efi --efi-directory=/boot/efi2 \
--bootloader-id=ubuntu-2 --recheck --no-floppy --bootloader-id=ubuntu-2 --recheck --no-floppy
#. Disable grub-initrd-fallback.service
For a mirror or raidz topology:
systemctl mask grub-initrd-fallback.service
This is the service for ``/boot/grub/grubenv`` which does not work on
mirrored or raidz topologies. Disabling this keeps it from blocking
subsequent mounts of ``/boot/grub`` if that mount ever fails.
Another option would be to set ``RequiresMountsFor=/boot/grub`` via a
drop-in unit, but that is more work to do here for no reason. Hopefully
`this bug <https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1881442>`__
will be fixed upstream.
#. Fix filesystem mount ordering: #. Fix filesystem mount ordering:
We need to activate ``zfs-mount-generator``. This makes systemd aware of We need to activate ``zfs-mount-generator``. This makes systemd aware of