Add install and configure steps

This commit is contained in:
maride 2017-07-31 01:07:54 +02:00
parent 40d03a6da8
commit ef2d687908
2 changed files with 22 additions and 0 deletions

4
steps/40-install.step Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
echo "~> Installing 'base' group and 'grub', 'efibootmgr'"
pacstrap /mnt base grub efibootmgr

18
steps/50-configure.step Executable file
View File

@ -0,0 +1,18 @@
#!/bin/sh
echo "~> generating fstab"
genfstab -U /mnt >> /mnt/etc/fstab
echo "~> Choosing 'Europe/Berlin' as timezone and syncing hardware clock"
arch-chroot "/mnt ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime"
arch-chroot "/mnt hwclock --systohc"
echo "~> Overwriting locale.gen and generate en_US and de_DE"
arch-chroot "/mnt echo -e "en_US.UTF-8 UTF-8\nde_DE.UTF-8 UTF-8" > /etc/locale.gen"
arch-chroot "/mnt locale-gen"
arch-chroot "/mnt echo "LANG=de_DE.UTF-8" > /etc/locale.conf"
arch-chroot "/mnt echo "KEYMAP=de-latin1" > /etc/vconsole.conf"
echo -e "~> Choose a hostname: "
read hostname
arch-chroot "/mnt echo $hostname > /etc/hostname"