You are not logged in.
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
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
Offline
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
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
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
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