aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 4dde989..2997ec7 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -254,6 +254,8 @@ fn switch_to_inactive_root() -> Result<()> {
let old = String::from("root=PARTUUID=00000000-0") + &old.chars().last().unwrap().to_string();
let new = String::from("root=PARTUUID=00000000-0") + &new.chars().last().unwrap().to_string();
+ println!("[admind] rewrite cmdline {} -> {}", old, new);
+
modify_cmdline(&old, &new)?;
Ok(())
}