diff options
Diffstat (limited to 'hbak/src')
-rw-r--r-- | hbak/src/main.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/hbak/src/main.rs b/hbak/src/main.rs index 6f26420..d8ae1ef 100644 --- a/hbak/src/main.rs +++ b/hbak/src/main.rs @@ -150,9 +150,12 @@ fn main() -> Result<()> { mut push, pull, } => { - let local_node = LocalNode::new()?; + // Unmount the btrfs before potentially getting killed at prompts. + { + let local_node = LocalNode::new()?; - push.retain(|subvol| !local_node.owns_subvol(subvol)); + push.retain(|subvol| !local_node.owns_subvol(subvol)); + } println!("Use the passphrase export results from the remote node below."); let verifier_hex = rpassword::prompt_password("Enter verifier: ")?; |