Skip to content

Commit

Permalink
Merge pull request #799 from ruihe774/writable_esp
Browse files Browse the repository at this point in the history
efi.rs: ensure writable ESP mount
  • Loading branch information
cgwalters authored Dec 13, 2024
2 parents ca96777 + 9d71a2f commit 2aa33d2
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 2aa33d2

Please sign in to comment.