From d11f51008eedce2ce35d9da43cc3994ebe8b1da4 Mon Sep 17 00:00:00 2001 From: madomado Date: Tue, 10 Oct 2023 23:59:09 +0800 Subject: [PATCH] redirect stderr? --- src/builder.rs | 2 +- src/config.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/builder.rs b/src/builder.rs index 368ab32..a5627f1 100644 --- a/src/builder.rs +++ b/src/builder.rs @@ -252,7 +252,7 @@ impl RootBuilder for DnfRootBuilder { } options.append(&mut exclude.iter().map(|p| format!("--exclude={p}")).collect()); - tracing::info!("Initializing system with dnf"); + info!("Initializing system with dnf"); crate::chroot_run_cmd!(chroot, dnf install -y --releasever=$releasever --installroot=$chroot $[packages] $[options] 2>&1; dnf clean all --installroot=$chroot; diff --git a/src/config.rs b/src/config.rs index 99741f2..cf7102d 100644 --- a/src/config.rs +++ b/src/config.rs @@ -667,6 +667,7 @@ impl Auth { args.push(password.to_string()); } + args.push(if self.create_home { "-m" } else { "-M" }.to_string()); if self.create_home { args.push("-m".to_string()); } else {