Skip to content

u/_archmirak_

In this archive from Jun 2017 to Aug 2019

4
posts
31
comments
2
media
423
score

Top posts

Top comments

That might be true at a quick glance, but actually it's pretty straightforward and easy to configure. Let's quickly work through a minimalist install.

Identify your drive using lsblk, let's assume it's /dev/sda.

Wipe it and create two partitions (will just use ext4 to keep it simple):

shred -vn1 -s100M /dev/sda

parted /dev/sda

Within parted write the following (use MiB and NOT MB):

mklabel gpt

mkpart ESP fat32 1MiB 513MiB

set 1 boot on

mkpart primary ext4 513MiB 100%

quit

Let's now format and mount our newly created partitions:

mkfs.fat -F32 /dev/sda1

mkfs.ext4 /dev/sda2

mount /dev/sda2 /mnt

mkdir /mnt/boot

mount /dev/sda1 /mnt/boot

Install Arch onto /mnt, generate fstab then chroot into the newly installed system:

pacstrap /mnt base base-devel

genfstab -U /mnt > /mnt/etc/fstab

arch-chroot /mnt

Here follow the guide on the Arch wiki if you'd like to setup users, shells, or whatever else you want.

Now let's get to the bootloader stuff. We'll use systemd-boot.

bootctl --path /boot install

Now the EFI binaries are ready within our ESP partition. It will just need a little configuration. Let's start by copying a useful default entry to the ESP:

cp /usr/share/systemd/bootctl/arch.conf /boot/loader/entries

Edit /boot/loader/loader.conf as follows using your favorite editor:

default arch

timeout 10

editor yes

This will tell the bootloader which boot entry is highlighted by default (the arch one we've copied before), how much time do you have before automatic boot kicks in and finally that you want the capability to edit your kernel command line (if necessary).

Run blkid /dev/sda2: this will tell you the UUID for your root drive.

Edit /boot/loader/entries/arch.conf as follows (the intel-ucode line is necessary only if you do have an Intel CPU and you've install such package):

title Arch Linux

linux /vmlinuz-linux

initrd /intel-ucode.img

initrd /initramfs-linux.img

options root=UUID=/dev/sda2 UUID goes here

That tells the bootloader the entry has the specified title, it should load the kernel vmlinuz-linux and should boot using the initramfs-linux.img image.

Done. Of course you can do way more complicated things (I do have a LUKS encrypted BTRFS system, with full disk encryption and Secure Boot self signed boot images) but this is a good starting point to play more around with systemd-boot.

4 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.