Skip to content

Commit

Permalink
efi.rs: ensure writable ESP mount
Browse files Browse the repository at this point in the history
  • Loading branch information
ruihe774 committed Dec 13, 2024
1 parent ca96777 commit 9d71a2f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/efi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 9d71a2f

Please sign in to comment.