3 touch /etc/dropbear/root_key
4 chmod 600 /etc/dropbear/root_key
6 echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
7 echo "!! Please remove encrypt-hook from /etc/mkinitcpio.conf !!"
8 echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
10 echo "Insert your SSH public key into '/etc/dropbear/root_key' (cat ~/.ssh/id_rsa.pub > /etc/dropbear/root_key)"
11 echo "Please take a look at: https://wiki.archlinux.org/index.php/Mkinitcpio#Using_net and configure it in your Bootloader"
12 echo "insert 'dropbear encryptssh' before 'filesystems' into 'HOOKS' in '/etc/mkinitcpio.conf' "
13 echo "and then run as root 'mkinitcpio -p linux'"
17 echo "Remove 'dropbear encryptssh' from 'HOOKS' in '/etc/mkinitcpio.conf' "
18 echo "run 'mkinitcpio -p linux'"
23 echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
24 echo "!! Please notice that the config has changed !!"
25 echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
27 echo "Please take a look: https://wiki.archlinux.org/index.php/Mkinitcpio#Using_net and configure it in your Bootloader"
29 echo "For DHCP example: ip=:::::<interface>:dhcp"
30 echo "For static example: ip=<ip-address>::<default gateway>:<netmask>:<hostname>:<interface>:static"
32 echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
33 echo "!! Please remove encrypt-hook from /etc/mkinitcpio.conf !!"
34 echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
37 echo "and then run as root 'mkinitcpio -p linux'"