debloat pacstrap
All checks were successful
ci/woodpecker/push/build/1 Pipeline was successful
ci/woodpecker/push/build/2 Pipeline was successful

This commit is contained in:
JMARyA 2025-04-22 16:19:47 +02:00
parent 34b35b02bc
commit 1cfa972e9f
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
2 changed files with 5 additions and 15 deletions

View file

@ -3,6 +3,7 @@
use crate::{
config::DriveConfig,
linux::{arch_chroot, install_file},
pkg::install_pkgs,
print_status,
};
@ -18,6 +19,8 @@ pub fn setup_mkinitcpio(conf: &DriveConfig) {
);
}
install_pkgs(&["plymouth"]);
// Set kernel cmdline
std::fs::create_dir_all("/mnt/etc/kernel").unwrap();

View file

@ -40,21 +40,8 @@ pub fn install_pkgs(pkg: &[&str]) {
/// Initial system pacstrap
pub fn pacstrap_at(dir: &str, kernel: Option<&String>, pkg: &[String]) {
let mut cmd: Vec<&str> = vec![
"pacstrap",
"-K",
dir,
"base",
"linux-firmware",
"git",
"networkmanager",
"nano",
"openssh",
"zsh",
"zsh-completions",
"zsh-autosuggestions",
"plymouth",
];
// TODO : rearrange pkgs + minify
let mut cmd: Vec<&str> = vec!["pacstrap", "-K", dir, "base"];
let linux_kernel = "linux".to_string();
let kernel = kernel.unwrap_or(&linux_kernel);