-
-# linux distributor, if unset will be ArchLabs
-# this can be set in the environment prior to install, eg.
-#
-# $ DIST="My Distro" archlabs-installer
-#
-# will result in "My Distro Linux" used where needed
-: ${DIST="ArchLabs"}
-
-
-VER="2.0.61" # installer version
-MNT="/mnt" # install mountpoint
-ANS="/tmp/ans" # dialog answer file
-
-# ------------------------------------------------------ #
-# When manually mounting your partitions, you need
-# to set these values to avoid using the mount menu.
-# ------------------------------------------------------ #
-
-# root partition, eg. /dev/sda2
-ROOT_PART=''
-
-# boot partition, required on UEFI eg. /dev/sda1
-BOOT_PART=''
-
-# boot device, used for some bootloaders eg. /dev/sda
-BOOT_DEV=''
-
-# bootloader to use, can be:
-# UEFI: grub, syslinux, efistub, systemd-boot, refind-efi
-# BIOS: grub, syslinux
-BOOTLDR=''
-
-# directory to mount the boot partition (if any) for most bootloaders
-# this will need to be 'boot' however a popular one for grub is 'boot/efi'
-BOOTDIR='boot'
-
-# ------------------------------------------------------ #
-
-# bulk default values {
-
-# these values will be selected during the install, it is not recommended
-# to edit them here unless you know what you're doing.
-
-UCODE='' # cpu microcode (if any), can be: amd-ucode, intel-ucode
-KERNEL='' # linux kernel, can be: linux, linux-lts, linux-zen, or linux-hardened
-MYSHELL='' # full path for the shell, eg. /usr/bin/zsh
-
-SWAP_PART='' # swap partition or file path
-SWAP_SIZE='' # swap size, only used when creating a swapfile
-
-EXMNT='' # holder for additional partitions while mounting
-EXMNTS='' # when an extra partition is mounted append it's info
-
-FONT="ter-i16n" # font used for the linux console
-HOOKS="shutdown" # list of additional HOOKS to add in /etc/mkinitcpio.conf
-
-LOGIN_TYPE='' # login manager can be: lightdm, xinit, ly
-LOGIN_WM='' # default login session to be placed in ~/.xinitrc
-LOGINRC='' # login shell rc file, eg. .zprofile, .bash_profile, .profile
-
-INSTALL_WMS='' # space separated list of chosen wm/de
-
-WM_PKGS='' # list of packages added during wm/de choice (not user edited)
-PACKAGES='' # list of all packages to install including WM_PKGS (not user edited)
-USER_PKGS='' # packages selected by the user during install
-
-NEWUSER='' # username for the new user
-USER_PASS='' # new user's password
-ROOT_PASS='' # root password
-
-LUKS='' # empty when not using encryption
-LUKS_DEV='' # boot parameter string for LUKS
-LUKS_PART='' # partition used for encryption
-LUKS_PASS='' # encryption password
-LUKS_UUID='' # encrypted partition UUID
-LUKS_NAME='' # name used for encryption
-
-LVM='' # empty when not using lvm
-LVM_PARTS='' # partitions used for volume group
-VGROUP_MB=0 # available space in volume group
-
-WARN='' # issued mounting/partitioning warning
-SEP_BOOT='' # separate boot partition for BIOS
-AUTOLOGIN='' # enable autologin for xinit
-CONFIG_DONE='' # basic configuration is finished
-
-FORMATTED='' # partitions we formatted and should allow skipping
-AUTO_ROOT_PART='' # root value from auto partition
-AUTO_BOOT_PART='' # boot value from auto partition
-
-# archlabs base
-AL_BASE_PKGS="archlabs-skel-base archlabs-fonts archlabs-themes archlabs-dARK archlabs-icons archlabs-wallpapers archlabs-scripts"
-
-# baseline (usually installed in the background)
-BASE_PKGS="base-devel xorg xorg-drivers sudo git gvfs gtk3 gtk-engines gtk-engine-murrine pavucontrol tumbler xdg-user-dirs "
-BASE_PKGS+="playerctl ffmpeg gstreamer libmad libmatroska gst-libav gst-plugins-base gst-plugins-good scrot bash-completion"
-
-# extras for window managers
-WM_BASE_PKGS="arandr archlabs-networkmanager-dmenu nitrogen polkit-gnome volumeicon xclip exo laptop-detect "
-WM_BASE_PKGS+="xdotool compton wmctrl gnome-keyring dunst feh gsimplecal xfce4-power-manager xfce4-settings"
-
-
-SEL=0 # currently selected menu item
-ERR="/tmp/errlog" # error log used internally
-DBG="/tmp/debuglog" # debug log when passed -d
-RUN="/run/archiso/bootmnt/arch/boot" # path for live system /boot
-VM="$(dmesg | grep -i "hypervisor")" # system running in a virtual machine
-SYS='Unknown' # bios type to be determined: UEFI/BIOS
-
-export DIALOGOPTS="--cr-wrap" # see `man dialog`
-
-# }
-
-# giant ugly variable container :P {
-
-# system RAM in MB