Copy pacman config after installing base packages

this stops /etc/pacman.conf.pacnew from being created
axtloss/rework-partitioning
axtloss 2 years ago committed by Michal
parent 491b7e8011
commit 03590603bd

@ -6,7 +6,6 @@ use std::path::PathBuf;
pub fn install_base_packages(kernel: String) { pub fn install_base_packages(kernel: String) {
std::fs::create_dir_all("/mnt/etc").unwrap(); 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() { let kernel_to_install = if kernel.is_empty() {
"linux" "linux"
} else { } else {
@ -38,6 +37,7 @@ pub fn install_base_packages(kernel: String) {
"btrfs-progs", "btrfs-progs",
"which", "which",
]); ]);
files::copy_file("/etc/pacman.conf", "/mnt/etc/pacman.conf");
} }
pub fn genfstab() { pub fn genfstab() {

Loading…
Cancel
Save