Re: how to defrag f2fs file system at startup
Reply #5 –
https://wiki.archlinux.org/title/F2FS
Looks like it (should?) get fsck'ed at boot as std, mkinitcpio has a fsck hook, enabled in /etc/mkinitcpio.conf:
https://wiki.archlinux.org/title/Fsck
I already have a hook for BTRFS, which could be looked at as an example, I guess you could add a similar custom script in that dir:
$ pacman -Qo /usr/lib/initcpio/hooks/btrfs
/usr/lib/initcpio/hooks/btrfs is owned by btrfs-progs 5.12.1-1
For some reason the f2fs-tools package does not have an equivalent hook.