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

Arch Linux

7739 readers
1 users here now

The beloved lightweight distro

founded 4 years ago
MODERATORS
1
submitted 7 months ago* (last edited 7 months ago) by [email protected] to c/[email protected]
 

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

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 0 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

[–] [email protected] 0 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

[–] [email protected] 0 points 7 months ago

Glad I could help!