Skip to content

Commit 3759ac5

Browse files
committed
efi: append -l to umount
Fixes error: `umount: /boot/efi: target is busy.`
1 parent 90186ac commit 3759ac5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/efi.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ impl Efi {
137137
fn unmount(&self) -> Result<()> {
138138
if let Some(mount) = self.mountpoint.borrow_mut().take() {
139139
Command::new("umount")
140+
.arg("-l")
140141
.arg(&mount)
141142
.run()
142143
.with_context(|| format!("Failed to unmount {mount:?}"))?;

0 commit comments

Comments
 (0)