summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Wernick <justin@worthe-it.co.za>2020-09-13 11:53:28 +0200
committerJustin Wernick <justin@worthe-it.co.za>2020-10-03 16:51:19 +0200
commit66a80a26b9f42def212bbbeb54b871ebe8c7dc7c (patch)
tree04099b908472d36600adc55d65a6b2e7fbbb3373
parent322e91e628f8d500325ee9942260116860941f98 (diff)
Set locale and create bare packer test config
-rw-r--r--alis.conf36
-rw-r--r--packer/alis-packer-efi.json49
2 files changed, 67 insertions, 18 deletions
diff --git a/alis.conf b/alis.conf
index d534ff0..fcdc3e8 100644
--- a/alis.conf
+++ b/alis.conf
@@ -7,15 +7,15 @@
# https://github.com/picodotdev/alis/blob/master/README.md
# init
-KEYS="es"
+KEYS="us"
LOG="false"
# partition
DEVICE="/dev/sda !/dev/nvme0n1 !/dev/mmcblk0" # sata nvme mmc (single)
DEVICE_TRIM="true" # If DEVICE supports TRIM
LVM="true" # true if use LVM for partitioning
-LUKS_PASSWORD="archlinux" # LUKS encryption key, if LVM will be user LVM on LUKS. Empty for not use LUKS/encryption. Warning: change it!
-LUKS_PASSWORD_RETYPE="archlinux"
+LUKS_PASSWORD="archlinux" && echo "change luks password" && exit 1 # LUKS encryption key, if LVM will be user LVM on LUKS. Empty for not use LUKS/encryption. Warning: change it!
+LUKS_PASSWORD_RETYPE="archlinux" && echo "change luks password" && exit 1
FILE_SYSTEM_TYPE="ext4 !btrfs !xfs" # (single)
SWAP_SIZE="!2048 !4096 !8192" # (single, in megabytes)
PARTITION_MODE="auto !custom !manual"
@@ -32,19 +32,19 @@ WIFI_HIDDEN=""
PING_HOSTNAME="mirrors.kernel.org"
# install (precede with ! for not install)
-REFLECTOR="false"
-REFLECTOR_COUNTRIES=("Spain")
+REFLECTOR="true"
+REFLECTOR_COUNTRIES=("South Africa")
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" # Additional kernels and headers (multiple)
KERNELS_COMPRESSION="!gzip !bzip2 !lzma !xz !lzop !lz4"
KERNELS_PARAMETERS="" # eg. iommu=soft
# config
-TIMEZONE="/usr/share/zoneinfo/Europe/Madrid"
-LOCALES=("es_ES.UTF-8 UTF-8" "en_GB.UTF-8 UTF-8")
-LOCALE_CONF=("LANG=es_ES.UTF-8" "LANGUAGE=es_ES:es:en_GB:en")
-KEYMAP="KEYMAP=es"
-KEYLAYOUT="es"
+TIMEZONE="/usr/share/zoneinfo/Africa/Johannesburg"
+LOCALES=("en_ZA.UTF-8 UTF-8")
+LOCALE_CONF=("LANG=en_ZA.UTF-8")
+KEYMAP="KEYMAP=us"
+KEYLAYOUT="us"
KEYMODEL=""
KEYVARIANT=""
KEYOPTIONS=""
@@ -55,9 +55,9 @@ ROOT_PASSWORD="archlinux" # Root user password. Warning: change it!
ROOT_PASSWORD_RETYPE="archlinux"
# user
-USER_NAME="picodotdev"
-USER_PASSWORD="archlinux" # Main user password. Warning: change it!
-USER_PASSWORD_RETYPE="archlinux"
+USER_NAME="justin"
+USER_PASSWORD="archlinux" && echo "change login password" && exit 1 # Main user password. Warning: change it!
+USER_PASSWORD_RETYPE="archlinux" && echo "change login password" && exit 1
ADDITIONAL_USERS=() # eg. ("user1=password1" "user2=password2")
SYSTEMD_HOMED="false" # (note: "true" value requires interactivity to set user password)
@@ -73,13 +73,13 @@ BOOTLOADER="!grub !refind systemd" # (single)
# desktop
DESKTOP_ENVIRONMENT="!gnome !kde !xfce !mate !cinnamon !lxde" # (single)
-DISPLAY_DRIVER="!intel !amdgpu !ati !nvidia !nvidia-lts !nvidia-dkms !nvidia-390xx !nvidia-390xx-lts !nvidia-390xx-dkms !nouveau" # (single)
+DISPLAY_DRIVER="!intel amdgpu !ati !nvidia !nvidia-lts !nvidia-dkms !nvidia-390xx !nvidia-390xx-lts !nvidia-390xx-dkms !nouveau" # (single)
KMS="true"
FASTBOOT="true"
FRAMEBUFFER_COMPRESSION="false"
DISPLAY_DRIVER_DDX="false"
-VULKAN="false"
-DISPLAY_DRIVER_HARDWARE_ACCELERATION="false"
+VULKAN="true"
+DISPLAY_DRIVER_HARDWARE_ACCELERATION="true"
DISPLAY_DRIVER_HARDWARE_ACCELERATION_INTEL="!intel-media-driver !libva-intel-driver" # (single)
# packages (all multiple)
@@ -90,10 +90,10 @@ PACKAGES_PACMAN_DOCUMENTS_AND_TEXT="!libreoffice-fresh !calligra !discount !lyx
PACKAGES_PACMAN_SECURITY="!rsync !gnupg !keepassxc"
PACKAGES_PACMAN_SCIENCE="!geogebra !octave"
PACKAGES_PACMAN_OTHERS="!klavaro !tmux"
-PACKAGES_PACMAN_DEVELOPER="!jdk-openjdk !python !dotnet-sdk !php !rust !go !virtualbox !docker !ansible !vagrant"
+PACKAGES_PACMAN_DEVELOPER="!jdk-openjdk !python !dotnet-sdk !php rustup !go !virtualbox !docker !ansible !vagrant"
PACKAGES_PACMAN_CUSTOM=""
-AUR="!yay !aurman"
+AUR="yay !aurman"
PACKAGES_AUR_INTERNET="!dropbox"
PACKAGES_AUR_MULTIMEDIA=""
diff --git a/packer/alis-packer-efi.json b/packer/alis-packer-efi.json
new file mode 100644
index 0000000..276edfa
--- /dev/null
+++ b/packer/alis-packer-efi.json
@@ -0,0 +1,49 @@
+{
+ "variables": {
+ "iso": "https://mirror.rackspace.com/archlinux/iso/2020.09.01/archlinux-2020.09.01-x86_64.iso",
+ "disk_size": "16384"
+ },
+ "builders": [
+ {
+ "name": "archlinux-alis-virtualbox",
+ "type": "virtualbox-iso",
+ "guest_os_type": "ArchLinux_64",
+ "guest_additions_mode": "attach",
+ "headless": false,
+ "http_directory": ".",
+ "vboxmanage": [
+ ["modifyvm", "{{.Name}}", "--memory", "2048"],
+ ["modifyvm", "{{.Name}}", "--vram", "128"],
+ ["modifyvm", "{{.Name}}", "--cpus", "2"],
+ ["modifyvm", "{{.Name}}", "--firmware", "efi"]
+ ],
+ "disk_size": "{{user `disk_size`}}",
+ "hard_drive_interface": "sata",
+ "iso_url": "{{user `iso`}}",
+ "iso_checksum": "sha1:95ebacd83098b190e8f30cc28d8c57af0d0088a0",
+ "ssh_username": "vagrant",
+ "ssh_password": "vagrant",
+ "ssh_wait_timeout": "60m",
+ "boot_wait": "5s",
+ "boot_command": [
+ "<wait30s>",
+ "curl -O http://{{.HTTPIP}}:{{.HTTPPort}}/alis.conf<enter><wait1s>",
+ "curl -O http://{{.HTTPIP}}:{{.HTTPPort}}/alis.sh<enter><wait1s>",
+ "sed -i \"s/LUKS_PASSWORD=.*/LUKS_PASSWORD=\\\"archlinux\\\"/\" ./alis.conf<enter><wait1s>",
+ "sed -i \"s/LUKS_PASSWORD_RETYPE=.*/LUKS_PASSWORD_RETYPE=\\\"archlinux\\\"/\" ./alis.conf<enter><wait1s>",
+ "sed -i \"s/USER_PASSWORD=.*/USER_PASSWORD=\\\"archlinux\\\"/\" ./alis.conf<enter><wait1s>",
+ "sed -i \"s/USER_PASSWORD_RETYPE=.*/USER_PASSWORD_RETYPE=\\\"archlinux\\\"/\" ./alis.conf<enter><wait1s>",
+ "chmod +x ./alis.sh<enter><wait1s>",
+ "./alis.sh<enter><wait3>y<wait1s><enter>",
+ "<wait10s><wait10s><wait10s><wait10s><wait10s><wait10s><wait10s><wait60m>"
+ ],
+ "shutdown_command": "systemctl poweroff"
+ }
+ ],
+ "post-processors": [
+ {
+ "type": "vagrant",
+ "output": "archlinux-alis-{{.BuildName}}.box"
+ }
+ ]
+ }