mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-22 15:01:00 +02:00
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:
parent
a467ab6b1a
commit
c05c38a9b7
@ -115,10 +115,10 @@ src_prepare() {
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local list=$(find -type f) || die
|
||||
|
||||
[[ -n "${list}" ]] || die "No firmware files found to install."
|
||||
if [[ -z "$(find -type f)" ]]; then
|
||||
die "No firmware files found to install."
|
||||
fi
|
||||
|
||||
insinto /lib/firmware/
|
||||
doins -r ${list}
|
||||
doins -r .
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user