this post was submitted on 30 Mar 2024
8 points (100.0% liked)

Arch Linux

7739 readers
1 users here now

The beloved lightweight distro

founded 4 years ago
MODERATORS
 

I'm trying to install Arch on Btrfs but every time mkinitcpio runs it fails as shown in the attached screenshot. I've tried on the actual laptop which I'm trying to set up, and also on a couple of Hyper-V VMs set up as I usually do and I've never had this issue before. This happens when its run automatically after installing linux via pacstrap, and if I run it again while chrooted into the new system. If I format as ext4 instead I don't have any problems.

I have a single subvolume called root mounted at / and a fat32 volume mounted at /boot, and I'm using the latest arch install iso (2024.03.29). Any idea why this is happening? The Btrfs volume is on a single device so as far as I'm aware I don't need to add the btrfs module to mkinitcpio.conf

top 3 comments
sorted by: hot top controversial new old
[–] ABeeinSpace@lemmy.world 8 points 7 months ago (1 children)

Make sure the btrfs-progs package is installed. I got the same error from mkinitcpio when I redid my computer using btrfs and forgot that package

[–] Infernal_pizza@lemmy.world 3 points 7 months ago (1 children)

Thanks that’s sorted it! I must have not noticed the error before as I usually install btrfs-progs after chrooting and it looks like installing it triggers mkinitcpio to run again anyway

[–] ABeeinSpace@lemmy.world 2 points 7 months ago

Glad I could help!