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);