From 03590603bd68d16f8b1625614ca0a5e73474c652 Mon Sep 17 00:00:00 2001 From: axtloss Date: Sun, 28 Aug 2022 19:49:14 +0200 Subject: [PATCH] Copy pacman config after installing base packages this stops /etc/pacman.conf.pacnew from being created --- src/functions/base.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/functions/base.rs b/src/functions/base.rs index fc04fea..ce9f030 100755 --- a/src/functions/base.rs +++ b/src/functions/base.rs @@ -6,7 +6,6 @@ use std::path::PathBuf; pub fn install_base_packages(kernel: String) { std::fs::create_dir_all("/mnt/etc").unwrap(); - files::copy_file("/etc/pacman.conf", "/mnt/etc/pacman.conf"); let kernel_to_install = if kernel.is_empty() { "linux" } else { @@ -38,6 +37,7 @@ pub fn install_base_packages(kernel: String) { "btrfs-progs", "which", ]); + files::copy_file("/etc/pacman.conf", "/mnt/etc/pacman.conf"); } pub fn genfstab() {