Skip to content

Commit 2aa33d2

Browse files
authored
Merge pull request #799 from ruihe774/writable_esp
efi.rs: ensure writable ESP mount
2 parents ca96777 + 9d71a2f commit 2aa33d2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/efi.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ use widestring::U16CString;
2222
use crate::filetree;
2323
use crate::model::*;
2424
use crate::ostreeutil;
25-
use crate::util::CommandRunExt;
25+
use crate::util::{self, CommandRunExt};
2626
use crate::{component::*, packagesystem};
2727

2828
/// Well-known paths to the ESP that may have been mounted external to us.
@@ -108,6 +108,7 @@ impl Efi {
108108
if st.f_type != libc::MSDOS_SUPER_MAGIC {
109109
continue;
110110
}
111+
util::ensure_writable_mount(&mnt)?;
111112
log::debug!("Reusing existing {mnt:?}");
112113
return Ok(mnt);
113114
}

0 commit comments

Comments
 (0)