From 1cfa972e9f03d3c77c666459a1268f10ee3086ac Mon Sep 17 00:00:00 2001 From: JMARyA Date: Tue, 22 Apr 2025 16:19:47 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20debloat=20pacstrap?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/install/kernel.rs | 3 +++ src/pkg.rs | 17 ++--------------- 2 files changed, 5 insertions(+), 15 deletions(-) diff --git a/src/install/kernel.rs b/src/install/kernel.rs index e31084d..5f87dad 100644 --- a/src/install/kernel.rs +++ b/src/install/kernel.rs @@ -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(); diff --git a/src/pkg.rs b/src/pkg.rs index ef3823d..15732a3 100644 --- a/src/pkg.rs +++ b/src/pkg.rs @@ -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);