2017-07-30 23:07:54 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
echo "~> generating fstab"
|
|
|
|
genfstab -U /mnt >> /mnt/etc/fstab
|
|
|
|
|
|
|
|
echo "~> Choosing 'Europe/Berlin' as timezone and syncing hardware clock"
|
2017-08-04 11:36:06 +00:00
|
|
|
arch-chroot /mnt ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime
|
|
|
|
arch-chroot /mnt hwclock --systohc
|
2017-07-30 23:07:54 +00:00
|
|
|
|
|
|
|
echo "~> Overwriting locale.gen and generate en_US and de_DE"
|
2017-08-04 11:36:06 +00:00
|
|
|
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
|
2017-07-30 23:07:54 +00:00
|
|
|
|
|
|
|
echo -e "~> Choose a hostname: "
|
|
|
|
read hostname
|
2017-08-04 11:36:06 +00:00
|
|
|
arch-chroot /mnt echo $hostname > /etc/hostname
|
2017-08-03 15:53:31 +00:00
|
|
|
|
|
|
|
echo "~> Configuring 'grub'"
|
2017-08-04 11:36:06 +00:00
|
|
|
arch-chroot /mnt grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=Arch_GRUB
|
2017-08-05 21:19:15 +00:00
|
|
|
arch-chroot /mnt echo "GRUB_CMDLINE_LINUX='cryptdevice=UUID=`blkid -o value /dev/sda2 | head -n 1`'" > /etc/default/grub
|
2017-08-04 11:36:06 +00:00
|
|
|
arch-chroot /mnt grub-mkconfig -o /boot/grub/grub.cfg
|