From b92219af41abf28907f0474075711ec88da395c2 Mon Sep 17 00:00:00 2001 From: Roey Darwish Dror Date: Thu, 18 Jun 2020 05:47:01 +0000 Subject: [PATCH] Clear the root password --- src/main.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main.rs b/src/main.rs index 623414a..d72d1f5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -249,6 +249,14 @@ fn create(command: args::CreateCommand) -> anyhow::Result<()> { ); debug!("fstab:\n{}", fstab); fs::write(mount_point.path().join("etc/fstab"), fstab).context("fstab error")?; + + arch_chroot + .execute() + .arg(mount_point.path()) + .args(&["passwd", "-d", "root"]) + .run() + .context("Failed to delete the root password")?; + if !presets.aur_packages.is_empty() { arch_chroot .execute()