Permalink
Browse files

add support for including a cpio full of kernel modules

  • Loading branch information...
1 parent ac12679 commit 92074b2a288d7bef67fa8864f5fb0549f576ac45 David Scott committed May 17, 2012
Showing with 8 additions and 1 deletion.
  1. +8 −1 make-initrd.sh
View
@@ -39,8 +39,15 @@ if [ -d ${OVERLAY} ]; then
(cd ${OVERLAY}; find . | cpio -pdumv ${ROOT})
fi
+MODULES=$(pwd)/modules.cpio
+echo Looking for optional ${MODULES}
+if [ -e ${MODULES} ]; then
+ echo UNpacking modules into ${ROOT}
+ (cd ${ROOT}; cpio -id < ${MODULES})
+fi
+
OUTPUT=$(pwd)/initrd
echo Repacking into ${OUTPUT}
(cd ${ROOT}; find . | cpio -o -Hnewc | gzip -9c > ${OUTPUT})
-echo Cleaning up
+echo Removing ${FEBOOTSTRAP_OUTPUT}
rm -rf ${FEBOOTSTRAP_OUTPUT}

0 comments on commit 92074b2

Please sign in to comment.