You are not logged in.

#1 2022-11-24 12:44:23

Cvlc
Member
Registered: 2020-03-26
Posts: 249

Mkinitcpio : 'Btrfs' module vs 'filesystems' hook

Hi,

Does it make any performance difference to specify 'btrfs' in the MODULES section instead of putting 'filesystems' in the HOOKS section in mkinitcpio.conf ?

Both seem to work but I fail to understand which is "better"

Thanks !

Offline

#2 2022-11-24 12:51:19

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,636

Re: Mkinitcpio : 'Btrfs' module vs 'filesystems' hook

The filesystems hook is always needed to mount any filesystem.
The btrfs hook is only needed if your root device is made from a btrfs 'RAID'.

This is all covered in the wiki...
https://wiki.archlinux.org/title/Mkinit … mmon_hooks
https://wiki.archlinux.org/title/Btrfs# … ile_system


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2022-11-24 12:54:08

Cvlc
Member
Registered: 2020-03-26
Posts: 249

Re: Mkinitcpio : 'Btrfs' module vs 'filesystems' hook

Thanks. I'm talking about btrfs in the MODULES section though.

I've found that I can remove filesystems from HOOKS if btrfs is in MODULES, probably from somewhere in the wiki. Don't know which is desirable though

Offline

#4 2022-11-24 13:08:54

Cvlc
Member
Registered: 2020-03-26
Posts: 249

Re: Mkinitcpio : 'Btrfs' module vs 'filesystems' hook

the wiki states

Filesystems: This includes necessary file system modules into your image. This hook is required unless you specify your file system modules in MODULES.

It doesn't say if one or the other is preferable

Offline

#5 2022-11-24 13:12:34

Scimmia
Fellow
Registered: 2012-09-01
Posts: 9,827

Re: Mkinitcpio : 'Btrfs' module vs 'filesystems' hook

Along with the autodetect hook, they accomplish the same thing. The filesystems hook is more general; it works on systems with any filesystem, and when used without the autodetect hook (ie, the fallback initramfs), gives you all of the filesystem drivers so you can access anything.

Offline

#6 2022-11-24 13:17:13

Cvlc
Member
Registered: 2020-03-26
Posts: 249

Re: Mkinitcpio : 'Btrfs' module vs 'filesystems' hook

ahh, I understand now why my fallback image was broken as well when I tried removing both btrfs and filesystems...

better to keep 'filesystems' then I guess. Thanks !

On the other hand, if using only btrfs, then removing filesystems and using btrfs in modules builds a smaller fallback image

Last edited by Cvlc (2022-11-24 13:18:50)

Offline

Board footer

Powered by FluxBB