Commit 6171fc7e authored by Timo Teräs's avatar Timo Teräs
Browse files

update-kernel: include only needed firmwares in modloop

new modloop (44.9M)
117.9M	4.1.10-0-grsec
39.3M	firmware
157.1M	total

old modloop (80.8M)
117.9M	4.1.10-0-grsec
112.1M	firmware
230.0M	total
parent af3dd201
......@@ -140,7 +140,7 @@ trap clean_up EXIT $SIGNALS
if [ "$SUPERUSER" ]; then
apk add $QUIET_OPT --update-cache -t $VIRTUAL mkinitfs squashfs-tools
apk add $QUIET_OPT --update-cache -t $VIRTUAL mkinitfs squashfs-tools kmod
if [ -z "$features" ]; then
......@@ -221,7 +221,10 @@ DTB_STAGING=$TMPDIR/dtbs
cp -a $ROOT/lib/modules $MODLOOP
cp -a $ROOT/lib/firmware $MODLOOP/modules
mkdir -p $MODLOOP/modules/firmware
find $ROOT/lib/modules -type f -name "*.ko" | xargs modinfo -F firmware | sort -u | while read FW; do
[ -e "$ROOT/lib/firmware/$FW" ] && install -pD $ROOT/lib/firmware/$FW $MODLOOP/modules/firmware/$FW
_exec mksquashfs $MODLOOP "$STAGING/$MODIMG" -comp xz
_exec mkinitfs -q -b $ROOT -F "$features base squashfs" \
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment