summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2009-04-08 15:01:56 -0400
committerChris Lumens <clumens@redhat.com>2009-04-08 16:18:54 -0400
commit8266cd09295e735702256fbd18343644eeb5c5ff (patch)
treee27a3003832ff2a0af93c3501e075a36f2343fe7 /scripts
parent01f71fcc6eca0e0fbd38ed48f8c2d2ea83bebfd1 (diff)
downloadanaconda-8266cd09295e735702256fbd18343644eeb5c5ff.tar.gz
anaconda-8266cd09295e735702256fbd18343644eeb5c5ff.tar.xz
anaconda-8266cd09295e735702256fbd18343644eeb5c5ff.zip
Put e100 (and other) firmware in its own directory if needed (#494778).
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/mk-images10
1 files changed, 9 insertions, 1 deletions
diff --git a/scripts/mk-images b/scripts/mk-images
index e1b278bd0..e0dc4ab40 100755
--- a/scripts/mk-images
+++ b/scripts/mk-images
@@ -293,7 +293,15 @@ makemoduletree() {
echo "Copying required firmware..."
find $MMB_DIR/lib/modules/ -name *.ko | while read module ; do
for fw in $(modinfo -F firmware $module); do
- cp $KERNELROOT/lib/firmware/$fw $MBD_DIR/firmware
+ dest=$MBD_DIR/firmware/$fw
+ destdir=$(dirname $dest)
+
+ # Some firmware files are expected to be in their own directories.
+ if [ ! -d $destdir ]; then
+ mkdir -p $destdir
+ fi
+
+ cp $KERNELROOT/lib/firmware/$fw $dest
done
done