Installing artixlinux a systemd-free archlinux with encryption and UEFI
Intro:
I wish you all a new and healthy year. This post is all about installing artix linux (a systemd-free alternative to archlinux) with UEFI and “full” disk encryption (LVM on LUKS).
FDE - the term “full disk encryption” might be a off.. My setup exists out of two partitions boot and a LVM partition/physical volume (PV). The LVM partition contains two logical volumes (LV) root and swap where your user and system data will be saved are full encrypted. For more informations check out: LVM on LUKS
The next part of this post is a to my preference customized combination from:
The whole installation process with all outputs and dialogs was cut down to in my opinion most important points/decisions i’ve made.
Grab your 🍵 and lets go!
Installation
create and boot from UEFI usb
I’ve used etecher on my windows gaming machine.. Yeah shame on my. Real linux users would use: Where if= stands for path to the artix_linux.iso and the of= for the path to the usb e.g. /dev/sdc
|
|
When you boot from usb you should select the right keyboard layout. In my case: de. Than boot to launch the basic artix linux from usb.
preperations
Also important to know. I have connected my notebook to ethernet and used dhcp to connect it with the internet. I case you only have WIFI follow this instructions: The login data are provided in the console log are artix:artix.
Partitioning & Encrypting & Mounting
I’ve installed parted for partitioning my disks:
|
|
we need will need:
- MBR partition table on sda
and at least two partitions
- on /dev/sda1 will be /boot
- on /dev/sda2 will be our encrytped LVM
show the actual partition list
|
|
on my system was linux mint installed so there are some EFI (boot, esp) and ext4 partitions.. which we should delete first.
|
|
Now we will create the partitions
|
|
awesome. Next we will encrypt the second partition with LUKS and create an LVM PV inside the LUKS container.
- cryptsetup for LUKS (linux unified key setup) creation
- dm-crypt (device-mapper crypt)
|
|
I’ve benchmarked my notebook for best encryption performance:
|
|
For me the following parameters are best. This could be different on your system so choose your personal best. I’VE CHANGED MY KEYBOARD_LAYOUT TO US BECAUSE GRUB WILL USE IT FOR ENTERING THE DECRYPTION PASSPHRASE TOO!
|
|
now open encrypted luks partition/container
|
|
create the physical volume inside the luks-container
|
|
Now we can a create logical volumes and/inside our volume group
|
|
We have to format our logical volumes
|
|
Creating the SWAP partition will output the UUID. Please write it down for later
|
|
Create the root parititon
|
|
Now we finally can mount:
|
|
base installation
|
|
If you are using solid state disks (SSDs) may considering:
|
|
Inform you about the advantages and disadvantages at: archlinux wiki
We can now chroot inside the base installation and modify/configure our linux
|
|
First set/change the root password
|
|
Then install an editor and adjust the language
|
|
remove # from deDE and enUS … UTF-8.
Now set the hostname
|
|
add your language to locale.gen
|
|
Edit the mkinitpico.conf
|
|
It’s time to configure the bootloader grub
|
|
add your normal user
|
|
configure network
|
|
now we can reboot
|
|