Am I missing a Step in the Arch Linux installation?

installation

I'm trying to do my second Archlinux installation, and for some reason every time I do this the bootloader ends up being the most frustrating part. This is also the step that the archlinux installer doesn't really seem to go over (it pretty much just says "Install the bootloader)

The steps I've been doing on repeat have been:

-Fdisk, partition 1 is EFI (type 1), 5GB just to avoid headaches

Partition 2 is default Linux subsystem

-Mkfs.fat -F32 the EFI partition

-Mkfs.ext4 the linux partition

-mount /dev/sda2 /mnt

-mkdir /mnt/boot

-mount /dev/sda1 /mnt/boot (i've also tried /boot, which seems to end up even worse)

-pacstrap /mnt base linux linux-firmware

I then generate the fstab file, which only shows one device, /.

I chroot into /mnt, and run

bootctl install

It then does it's thing, and upon reboot all I have is "reboot into Firmware Interface"

It seems like no matter how I configure it, bootctl doesn't actually see the linux install.

What am I missing and what did I miss in the installation instructions?

Just to clarify, this is with systemd-boot, but I also had similar issues when trying to install Grub on a separate setup, which unfortunately I can't remember exactly what I did to finally make it work.

This is a single OS install on hyper-v. Similar issues also occurred on vmware. I'm just trying to do the most basic installation of Arch Linux with a bootloader.

https://wiki.archlinux.org/title/Installation_guide

edit: Solved, the bootloader does not setup the loader.conf file or an entry for the operating system. The systemd-boot (bootctl) page includes examples on how to set this up. Thanks for the assistance everyone!

Posted Nov 3, 2021, 6:37 AM UTC · edited

38
C0rn3j•

-Fdisk, partition 1 is EFI (type 1), 5GB just to avoid headaches

Even with a heavy initramfs and multiple kernels you won't get past a few hundred MB, 1/10 of that would've sufficed.

6
AnonTwoOP•

I'll give that a try on my next go around. I started doing 5GB because my very first attempt had some weird size issues, but that was probably a mix of other things as well.

1
[deleted]•

[deleted]

3
AnonTwoOP•

/boot:

0ff...  EFI  Initramfs-linuxfallback  initramfs-linux.img loader vmlinux-linux

/boot/efi

BOOT Linux systemd

/boot/efi/BOOT

BOOTX64.EFI

loader.conf:

#timeout 3

#console-mode keep

default 0ff...

Is editing loader.conf an expected step of the setup? Because it seems to only exist halfway down the systemd-boot wiki, and not anywhere in the archlinux installation. Is this not part of bootctl's install?

2
dually•

Yes.

Configure loader.conf and entries/arch.conf.

3
[deleted]•

[deleted]

2
AnonTwoOP•

Thanks, getting more and more consistent now.

2
AnonTwoOP•

Just wanted to add on my next go around I was able to do a clean install and boot in without any hiccups, thanks everyone!

2
dually•

Good job!

1
AutoModeratorMOD•

We have some installation tips in our wiki!

Try this search for more information on this topic.

✻ Smokey says: always install over an ethernet cable, and don't forget to remove the boot media when you're done! :)

^Comments, ^questions ^or ^suggestions ^regarding ^this ^autoresponse? ^Please ^send ^them ^here.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1