Arch

Making a minimal arch linux consists of these steps, performed from an existing Arch linux:

# mkfs.ext4  /dev/nbd0p2
# mkdir /mnt/newroot
# mount /dev/nbd0p2 /mnt/newroot
# pacstrap /mnt/newroot
# arch-chroot /mnt/newroot
# genfstab -U /mnt/newroot >> /mnt/newroot/etc/fstab
# ln -sf /usr/share/zoneinfo/Europe/Budapest /etc/localtime
# echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
# echo "LANG=en_US.UTF-8" > /etc/locale.conf
# echo "KEYMAP=uk" > /etc/vconsole.conf
# echo "base" > /etc/hostname
# cat >> /etc/hosts << EOF
> 127.0.0.1 localhost
> ::1 localhost
> 127.0.1.1 base.localdomain base
> EOF
# passwd

Once that's done, exit and umount:

# umount /mnt/newroot