✨ 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::{
|
use crate::{
|
||||||
config::DriveConfig,
|
config::DriveConfig,
|
||||||
linux::{arch_chroot, install_file},
|
linux::{arch_chroot, install_file},
|
||||||
|
pkg::install_pkgs,
|
||||||
print_status,
|
print_status,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -18,6 +19,8 @@ pub fn setup_mkinitcpio(conf: &DriveConfig) {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
install_pkgs(&["plymouth"]);
|
||||||
|
|
||||||
// Set kernel cmdline
|
// Set kernel cmdline
|
||||||
std::fs::create_dir_all("/mnt/etc/kernel").unwrap();
|
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
|
/// Initial system pacstrap
|
||||||
pub fn pacstrap_at(dir: &str, kernel: Option<&String>, pkg: &[String]) {
|
pub fn pacstrap_at(dir: &str, kernel: Option<&String>, pkg: &[String]) {
|
||||||
let mut cmd: Vec<&str> = vec![
|
// TODO : rearrange pkgs + minify
|
||||||
"pacstrap",
|
let mut cmd: Vec<&str> = vec!["pacstrap", "-K", dir, "base"];
|
||||||
"-K",
|
|
||||||
dir,
|
|
||||||
"base",
|
|
||||||
"linux-firmware",
|
|
||||||
"git",
|
|
||||||
"networkmanager",
|
|
||||||
"nano",
|
|
||||||
"openssh",
|
|
||||||
"zsh",
|
|
||||||
"zsh-completions",
|
|
||||||
"zsh-autosuggestions",
|
|
||||||
"plymouth",
|
|
||||||
];
|
|
||||||
|
|
||||||
let linux_kernel = "linux".to_string();
|
let linux_kernel = "linux".to_string();
|
||||||
let kernel = kernel.unwrap_or(&linux_kernel);
|
let kernel = kernel.unwrap_or(&linux_kernel);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue