diff options
author | Chris Lumens <clumens@redhat.com> | 2009-04-08 15:01:56 -0400 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2009-04-08 16:18:54 -0400 |
commit | 8266cd09295e735702256fbd18343644eeb5c5ff (patch) | |
tree | e27a3003832ff2a0af93c3501e075a36f2343fe7 /scripts | |
parent | 01f71fcc6eca0e0fbd38ed48f8c2d2ea83bebfd1 (diff) | |
download | anaconda-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-x | scripts/mk-images | 10 |
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 |