pub fn mount_esp_readonly(device: &str) -> Result<TempMount>Expand description
Get a read-only view of the ESP for the provided device, gracefully
handling the case where the ESP is already mounted in the root mount
namespace (e.g. via systemd.mount-extra=UUID=<ESP>:/boot:auto:ro).
If the ESP is already mounted, that mount is cloned privately into a
tempdir; otherwise a fresh read-write mount is performed. The returned
mount may be rw or ro; callers must not write through it.