From 9d71a2f9896058044a9a73612005065d7c41a9dd Mon Sep 17 00:00:00 2001 From: Misaki Kasumi Date: Fri, 13 Dec 2024 19:30:00 +0800 Subject: [PATCH] efi.rs: ensure writable ESP mount --- src/efi.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/efi.rs b/src/efi.rs index 389de581..29de6fb6 100644 --- a/src/efi.rs +++ b/src/efi.rs @@ -22,7 +22,7 @@ use widestring::U16CString; use crate::filetree; use crate::model::*; use crate::ostreeutil; -use crate::util::CommandRunExt; +use crate::util::{self, CommandRunExt}; use crate::{component::*, packagesystem}; /// Well-known paths to the ESP that may have been mounted external to us. @@ -108,6 +108,7 @@ impl Efi { if st.f_type != libc::MSDOS_SUPER_MAGIC { continue; } + util::ensure_writable_mount(&mnt)?; log::debug!("Reusing existing {mnt:?}"); return Ok(mnt); }