anatol / booster

Fast and secure initramfs generator
MIT License
505 stars 45 forks source link

Consider using busybox/kmod directly #226

Open evelikov opened 1 year ago

evelikov commented 1 year ago

While grepping for xz/zstd I've noticed that the project is effectively re-implementing kmod.

Note I didn't look too closely at the code, although it's not hard to imagine that it has are bugs and other unwanted creatures lurking within.

Perhaps more importantly a) the contents/implementation of modules.dep varies across kmod and busybox and b) the man page explicitly suggests against using third party tools to parse said files

From man modules.dep

...

Its text counterpart is located in the same directory with the name
modules.dep. The text version is maintained only for easy of reading by
humans and is in no way used by any kmod tool.

These files are not intended for editing or use by any additional
utilities as their format is subject to change in the future. You
...