Commit 309d9985 authored by picodotdev's avatar picodotdev

Refactor KERNEL config

parent 2f318432
......@@ -16,10 +16,15 @@ WIFI_KEY=""
WIFI_HIDDEN=""
PING_HOSTNAME="mirrors.kernel.org"
# install
# install (precede with ! for not install)
PACMAN_MIRROR="https://mirrors.kernel.org/archlinux/\$repo/os/\$arch"
KERNELS="" # linux-lts linux-lts-headers linux-hardened linux-hardened-headers linux-zen linux-zen-headers
KERNELS_COMPRESSION="" # gzip bzip2 lzma xz (also known as lzma2) lzop lz4
KERNELS="!linux-lts !linux-lts-headers !linux-hardened !linux-hardened-headers !linux-zen !linux-zen-headers"
KERNELS_COMPRESSION="!gzip !bzip2 !lzma !xz !lzop !lz4"
KERNELS=$(echo $KERNELS | sed "s/![^ ]*//g") # remove disabled packages
KERNELS=$(echo $KERNELS | sed "s/ {2,}/ /g") # remove white spaces
KERNELS_COMPRESSION=$(echo $KERNELS_COMPRESSION | sed "s/![^ ]*//g")
KERNELS_COMPRESSION=$(echo $KERNELS_COMPRESSION | sed "s/ {2,}/ /g")
# config
TIMEZONE="/usr/share/zoneinfo/Europe/Madrid"
......@@ -44,11 +49,11 @@ BOOTLOADER="grub" # grub refind systemd
# desktop (precede package name with ! for not install)
DESKTOP_ENVIRONMENT="!gnome !kde !xfce !mate !cinnamon !lxde"
DISPLAY_DRIVER="!intel !amdgpu !ati !nvidia !nvidia-lts !nvidia-390xx !nvidia-390xx-lts !nvidia-340xx !nvidia-340xx-lts !nouveau"
KMS="true"
KMS="false"
DISPLAY_DRIVER_DDX="false"
VULKAN="false"
DISPLAY_DRIVER_HARDWARE_ACCELERATION="true"
DISPLAY_DRIVER_HARDWARE_ACCELERATION_INTEL="intel-media-driver !libva-intel-driver"
DISPLAY_DRIVER_HARDWARE_ACCELERATION="false"
DISPLAY_DRIVER_HARDWARE_ACCELERATION_INTEL="!intel-media-driver !libva-intel-driver"
DESKTOP_ENVIRONMENT=$(echo $DESKTOP_ENVIRONMENT | sed "s/![^ ]*//g") # remove disabled packages
DESKTOP_ENVIRONMENT=$(echo $DESKTOP_ENVIRONMENT | sed "s/ {2,}/ /g") # remove white spaces
......
......@@ -84,6 +84,8 @@ function check_variables() {
check_variables_list "FILE_SYSTEM_TYPE" "$FILE_SYSTEM_TYPE" "ext4 btrfs xfs"
check_variables_value "PING_HOSTNAME" "$PING_HOSTNAME"
check_variables_value "PACMAN_MIRROR" "$PACMAN_MIRROR"
check_variables_list "KERNELS" "$KERNELS" "linux-lts linux-lts-headers linux-hardened linux-hardened-headers linux-zen linux-zen-headers" "false"
check_variables_list "KERNELS_COMPRESSION" "$KERNELS_COMPRESSION" "gzip bzip2 lzma xz lzop lz4" "false"
check_variables_value "TIMEZONE" "$TIMEZONE"
check_variables_value "LOCALE" "$LOCALE"
check_variables_value "LANG" "$LANG"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment