This commit is contained in:
parent
84dad2bcaa
commit
8382174219
3 changed files with 10 additions and 2 deletions
|
@ -57,6 +57,9 @@ pkg = [
|
|||
"micro"
|
||||
]
|
||||
|
||||
# Custom kernel
|
||||
kernel = "linux-lts"
|
||||
|
||||
# Enable virtualization
|
||||
virtualization = true
|
||||
|
||||
|
|
|
@ -59,6 +59,8 @@ pub struct PackageConfig {
|
|||
pub virtualization: Option<bool>,
|
||||
/// Enable docker
|
||||
pub docker: Option<bool>,
|
||||
/// Custom kernel package
|
||||
pub kernel: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Deserialize)]
|
||||
|
|
|
@ -48,9 +48,7 @@ pub fn pacstrap(conf: &PackageConfig) {
|
|||
"-K",
|
||||
"/mnt",
|
||||
"base",
|
||||
"linux",
|
||||
"linux-firmware",
|
||||
"linux-headers",
|
||||
"git",
|
||||
"networkmanager",
|
||||
"nano",
|
||||
|
@ -61,6 +59,11 @@ pub fn pacstrap(conf: &PackageConfig) {
|
|||
"plymouth",
|
||||
];
|
||||
|
||||
let linux_kernel = "linux".to_string();
|
||||
let kernel = conf.kernel.as_ref().unwrap_or(&linux_kernel);
|
||||
let headers = format!("{kernel}-headers");
|
||||
cmd.extend(&[kernel.as_str(), headers.as_str()]);
|
||||
|
||||
#[cfg(target_arch = "aarch64")]
|
||||
{
|
||||
cmd.extend(&["archlinuxarm-keyring"]);
|
||||
|
|
Loading…
Add table
Reference in a new issue