aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorHimbeerserverDE <himbeerserverde@gmail.com>2023-05-05 18:14:42 +0200
committerHimbeerserverDE <himbeerserverde@gmail.com>2023-05-05 18:14:42 +0200
commit549e7045a48d899373147d4037d54d3051b45128 (patch)
tree098bb99fb79fb286ff7a6fca700faf33faded103 /src/main.rs
parentdf17d4f35074768c5aa806459d1e12ff8cada14a (diff)
print details about cmdline updates
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(())
}