How_to_arch_a_banana_pi_r2/IMG-SETUP

17 lines
508 B
Text
Raw Normal View History

mkdir root.setup
mount /dev/mmcblk1p2 root.setup
pacstrap root.setup base base-devel dhcpcd wget vim emacs-nox man-db man-pages
arch-chroot root.setup
ln -s /usr/share/zoneinfo/Europe/Berlin /etc/localtime
sed -i "s|\#en_US.UTF-8 UTF-8|en_US.UTF-8 UTF-8|g;" /etc/locale.gen
locale-gen
echo "KEYMAP=de-latin1" > /etc/vconsole.conf
echo "bpi-r2-arch" > /etc/hostname
systemctl enable dhcpcd
exit
genfstab -U root.setup/ >> root.setup/etc/fstab
genfstab -U /boot >> root.setup/etc/fstab
sync
umount root.setup