✨ debloat pacstrap
This commit is contained in:
parent
34b35b02bc
commit
1cfa972e9f
2 changed files with 5 additions and 15 deletions
|
@ -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();
|
||||
|
||||
|
|
17
src/pkg.rs
17
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue