coreos-firmware: do not exclude directories and symlinks

Commit ed4660a2d9abe4583b9b327d2801703ec9f4ca18 added an explicit error
message to catch when something goes wrong and cannot find any firmware
required by the kernel. This additionally changed the call to doins to
an explicit list of files, flattening out the directory tree and
excluding symlinks. The tree *must* be preserved exactly in order for
the kernel to find the files it needs.
This commit is contained in:
Michael Marineau 2015-08-25 15:33:00 -07:00
parent a467ab6b1a
commit c05c38a9b7
2 changed files with 4 additions and 4 deletions

View File

@ -115,10 +115,10 @@ src_prepare() {
} }
src_install() { src_install() {
local list=$(find -type f) || die if [[ -z "$(find -type f)" ]]; then
die "No firmware files found to install."
[[ -n "${list}" ]] || die "No firmware files found to install." fi
insinto /lib/firmware/ insinto /lib/firmware/
doins -r ${list} doins -r .
} }