- start the live environment
curl --proto '=https' -sSfO https://raw.githubusercontent.com/as3ii/as3ii-installer/master/setup-base.shto download the scriptchmod +x setup-base.shto make it executable./setup-base.shto execute it
If you want, you can pass some parameters:
-d /dev/sdXselect device to be wiped and formatted-e /mnt/boot/efiselect partition or mountpoint to use as EFI-b /mnt/bootselect partition or mountpoint to use as Boot-r /mntselect partition or mountpoint to use as Root-k ukselect keyboard layout-cenable root partition encryption with luks2 Use -e, -b and -r if you have manually created (and optionally formatted and mounted) the needed partitions. In this case -d option will be ignored if present. If -e, -b, -r and -d are not set, then this script will try to install the system on the default folders (the ones specified above)
This script will wipe the given device, these are the partitions that will be created:
1: boot partition
FS: vfat
Size: 500M (499M if efi is not detected)
Mount Point: /boot
2: luks2 encrypted partition (when enabled)
Mount Point: /dev/mapper/cryptroot
2.1: root partition
FS: btrfs
Size: rest of the disk
Hash: xxhash
Mount Point: none
Mount Options: autodefrag,space_cache=v2,noatime,compress=zstd:2
'discard=async' will be added when ssd is detected
Subvolumes:
Subolume : Mount Point : specific options
@ : /
@snapshot : /snapshot
@home : /home
@opt : /opt
@root : /root
@swap : /swap : nocow
@tmp : /tmp : nocow
@usr_local : /usr/local
@var_cache : /var/cache : nocow
@var_log : /var/log
@var_tmp : /var/tmp : nocow
Then it will create swapfile, update archlinux-keyring, update pacman's mirrors list,
install base system (base linux linux-firmware btrfs-progs man-db man-pages
neovim git grub efibootmgr), generate fstab and crypttab, configure mkinitcpio,
configure and install grub, and setting some base things such as keymap and locale.
- add more checks
- add more options for more customizability (in progress)
- add zram
- more verbose output
- grub installation and configuration
- rEFInd installation and configuration
- make luks's cryptography optional
- /boot encryption
- snapshot after installation
- post-base-install script download & launch