goals:

  • setup archiso
  • ci some changes

package installation

## install archiso
> pacman -S archiso

prepare configuration

## clone profile
## profile releng = original arch linux
## profile basic = just enought to run
> cp -r /usr/share/archiso/configs/profile/ archlive

## enable services like this
## first create multi-user-target
> mkdir -p archlive/airootfs/etc/systemd/system/multi-user.target.wants
## then link the wanted service
> ln -s /usr/lib/systemd/system/sshd.service archlive/airootfs/etc/systemd/system/multi-user.target.wants/

## put in public ssh key
> mkdir archlive/airootfs/root/.ssh
> cat ~/.ssh/id_ed25519.pub >> archlive/airootfs/root/.ssh/authorized_keys
## set permissions in scriptfile
> archlive/profiledef.sh
...
file_permissions=(
  ...
	## == root .ssh/
  ["/root"]="0:0:0750"
  ["/root/.ssh"]="0:0:0700"
  ["/root/.ssh/authorized_keys"]="0:0:0600"
)

## setup wifi
> mkdir -p archlive/airootfs/var/lib/iwd
...
file_permissions=(
  ...
  ["/var/lib/iwd"]="0:0:0700"
)
## create presharedkey using wpa_passphrase ssid + pass
> wpa_passphrase WIFINETWORK test1234
network={
	ssid="WIFINETWORK"
	#psk="test1234"
	psk=888646b7a5a7fa568c1984755a296c7f2653f1909909fbf783806574d67d7d77
}
## save the psk string under "airootfs/var/lib/iwd/WIFINETWORK.psk"
> archlive/airootfs/var/lib/iwd/WIFINETWORK.psk
[Security]
PreSharedKey=888646b7a5a7fa568c1984755a296c7f2653f1909909fbf783806574d67d7d77
  1. /etc/vconsole
    1. KEYMAP=de-latin1
  2. /etc/hostname