illiliti / tinyramfs

Tiny initramfs written in POSIX shell
GNU General Public License v3.0
103 stars 19 forks source link

feature request: include custom executables in initramfs #33

Closed apprehensions closed 2 years ago

illiliti commented 2 years ago

It's already possible via hooks. Put

{ IFS=,; set -- $bins; unset IFS; }
for bin; do
    copy_exec "$bin"
done

into /etc/tinyramfs/hook.d/custom_bins

Then specify bins variable in config. Example:

bins=ls,id,my_executable,/full/path/to/executable_not_in_PATH