Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Endless] gpt-auto-generator: Make /boot a persistent mount
When using staged deployments, ostree updates the boot loader entries during shutdown from a systemd unit. That's proven to be very fragile when /boot is an automount: * Once automount units are scheduled to be stopped, systemd ignores notifications from autofs that the mount is needed. That means that if the mount isn't active when the shutdown phase begins, finalizing the deployment will fail. * When a separate mount namespace is in use, autofs does not see the mount as active and notifies systemd that the mount is expired so it will be unmounted. Since systemd often starts units in separate mount namespaces, this can either cause the finalizing unit to be triggered early and hang or fail if it hasn't completed by the time the mount expires. Although the goal of keeping the ESP unmounted is worthy since it's on a VFAT filesystem, having systemd not mount /boot when needed or unmounted while it's still needed is worse. This changes the /boot mount (either the ESP or XBOOTLDR partition) to be persistent. https://phabricator.endlessm.com/T33136
- Loading branch information