f2fscrypt utility compiled statically in OE
May 13, 2022 —
BarryK
I am planning to investigate f2fs instead of ext4 for the working partition. To support encrypted folders in ext4, there is the 'e4crypt' utility, which is in the initrd. To support encryption of folders in f2fs, the 'f2fscrypt' utility is needed.
OpenEmbedded has a recipe for 'f2fs-tools', which creates dynamically-linked executables. OE allows a choice of C library, and I have a build using musl. In that build, I created a new recipe, based on the one for f2fs-tools, except with LDFLAGS having "-static" appended.
So, created 'f2fscrypt' statically-linked for x86_64, aarch64 and
i686, and put them into woofQ. It is small, just over 60KB.
Tags: easy