summaryrefslogtreecommitdiff
path: root/make
diff options
context:
space:
mode:
authorAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2020-07-13 23:43:42 -0400
committerAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2020-07-13 23:43:42 -0400
commit80d98ad93aaf8b02bce80dbbac81b2beed518d3a (patch)
tree830420eda23839518485ae6e58e83d2ec5ac4339 /make
parent3a00916f4eb86a96de7f8c94974d20e3ea91c474 (diff)
downloadminitramfs-80d98ad93aaf8b02bce80dbbac81b2beed518d3a.tar.xz
minitramfs-80d98ad93aaf8b02bce80dbbac81b2beed518d3a.zip
add basic module support
Diffstat (limited to 'make')
-rwxr-xr-xmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/make b/make
index 5dc25f1..9ce479c 100755
--- a/make
+++ b/make
@@ -32,6 +32,11 @@ gen_cmd() {
# generate the main file list
gen_cpio_list() {
sed -e '/^#/d' cpio_list.txt
+ while read insmod mod args; do
+ if [ "$insmod" = insmod ]; then
+ printf 'file %s %s 0644 0 0\n' "$mod" "$mod"
+ fi
+ done < modules.sh
gen_cmd e2fsck
gen_cmd dropbear
# cryptsetup argon2 uses pthread_cancel, glibc dlopens libgcc_s.so.1