In this article I describe a super simple way to boot without a bootloader, instead offering a pure UEFI installation.

Replace sda with vda or nvme0n1 as necessary. Check lsblk to see your options.

timedatectl set-ntp true
gdisk /dev/sda

Create a 256 MB partition of type EF00. This will be /dev/sda1

mkfs.fat -F32 /dev/sda1
mkfs.btrfs /dev/sda2
mount -o discard,compress-force=lzo /dev/sda2 /mnt
mount /dev/sda1 /mnt/boot
pacstrap /mnt base base-devel btrfs-progs vim openssh
genfstab -U /mnt >> /mnt/etc/fstab

Enter the arch chroot environment.

arch-chroot /mnt
ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime
timedatectl set-ntp true
vim /etc/locale.gen
vim /etc/hostname
vim /etc/hosts
systemctl enable sshd
systemctl enable dhcpcd
passwd

Edit /boot/startup.nsh

fs0:\vmlinuz-linux rw root=/dev/sda2 initrd=\initramfs-linux.img

Leave the chroot environment

exit
umount -R /mnt
poweroff

Comments

comments powered by Disqus