From 77964056ffe63d87bee4e4afe8ddec541b0b5ce2 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Wed, 9 Sep 2009 17:50:59 +0000 Subject: embed all firmwares that are needed by the modules we embed --- images/Makefile | 2 +- images/NEWS | 3 +++ images/make_boot_img | 5 +---- images/update_kernel | 1 + 4 files changed, 6 insertions(+), 5 deletions(-) (limited to 'images') diff --git a/images/Makefile b/images/Makefile index 7415cc690..987005132 100644 --- a/images/Makefile +++ b/images/Makefile @@ -1,6 +1,6 @@ include ../Makefile.config -VERSION=1.41 +VERSION=1.42 PRODUCT=drakx-installer-images KERNELS=$(shell rpm -qf /lib/modules/2.*) diff --git a/images/NEWS b/images/NEWS index 587a41dd7..50bead4f3 100644 --- a/images/NEWS +++ b/images/NEWS @@ -1,7 +1,10 @@ +Version 1.42 - 9 September 2009, by Pascal Terjan + - include squashfs-lzma and sqlzma kernel modules in all.rdz - add /dev/ptmx (for screen to work) - drop duplicated code including busybox, ka version is better than the one of DEBUGSTAGE1 +- embed all firmwares that are needed by the modules we embed Version 1.40 - 14 April 2009, by Pascal Terjan diff --git a/images/make_boot_img b/images/make_boot_img index fab6183f7..2d077d4b2 100755 --- a/images/make_boot_img +++ b/images/make_boot_img @@ -157,10 +157,7 @@ sub initrd { foreach ("/usr/share/ldetect-lst/fallback-modules.alias", "/lib/module-init-tools/ldetect-lst-modules.alias") { _ "install -D $_ $tmp_initrd$_"; } - # FIXME: we could just look at all network modules, run modinfo and them and look for the firmware field: - # (we may also want to add firmware for SCSI and the like if any): - foreach (grep { warn "> $_\n"; m!(3com|acenic|adaptec|cxgb3|e100|kaweth|tehuti|tigon)! } glob_("/lib/firmware/*")) { - warn ">> $_\n"; + foreach (glob_("all.kernels$I/firmware/*")) { _ "cp -a $_ $tmp_initrd$_"; }; diff --git a/images/update_kernel b/images/update_kernel index 3488acd06..37084b39f 100755 --- a/images/update_kernel +++ b/images/update_kernel @@ -73,6 +73,7 @@ sub extract_installed_rpm { } sys('perl', '../kernel/modules.pl', 'remove_unneeded_modules', $kern_ver); + sys('perl', '../kernel/modules.pl', 'get_firmwares', $kern_ver); sys('perl', '../kernel/modules.pl', 'make_modules_per_image', $kern_ver); rm_rf("$local_dir/modules"); -- cgit v1.2.1