summaryrefslogtreecommitdiffstats
path: root/src/event_exec.rs
diff options
context:
space:
mode:
authorquentin konieczko <konieczko@gmail.com>2023-04-11 11:39:53 +0200
committerquentin konieczko <konieczko@gmail.com>2023-04-11 11:39:53 +0200
commitc800b4af04dbb7f1b40da90c2c243e20f043e263 (patch)
tree0a59afa15c0e08f13749473680f4cac3d26f173a /src/event_exec.rs
parent344f3a9ba3752f86561b0af97cf8e2d8ba2e7181 (diff)
Move to mounted isodevice
Diffstat (limited to 'src/event_exec.rs')
-rw-r--r--src/event_exec.rs22
1 files changed, 15 insertions, 7 deletions
diff --git a/src/event_exec.rs b/src/event_exec.rs
index fefe41b..16b2895 100644
--- a/src/event_exec.rs
+++ b/src/event_exec.rs
@@ -1737,13 +1737,21 @@ impl EventExec {
PasswordUsage::ISO,
)?;
} else {
- iso_mounter.mount(&current_username()?)?;
- info!("iso mounter mounted {iso_mounter:?}");
- info!(
- target: "special",
- "iso :\n{}",
- iso_mounter.iso_device.as_string()?,
- );
+ if iso_mounter.mount(&current_username()?)? {
+ info!("iso mounter mounted {iso_mounter:?}");
+ info!(
+ target: "special",
+ "iso :\n{}",
+ iso_mounter.iso_device.as_string()?,
+ );
+ let path_str = &iso_mounter
+ .iso_device
+ .mountpoints
+ .clone()
+ .context("no mount point")?;
+ let path = std::path::PathBuf::from(path_str);
+ status.selected().set_pathcontent(&path)?;
+ };
status.iso_mounter = None;
};
}