diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-11-10 22:12:45 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-11-10 22:12:45 +0100 |
commit | 2382c90dc7a30d17628a11f9ff41f8c63867887a (patch) | |
tree | 6b29969ecee55d602d047aa411dd854b21ad9571 /data | |
parent | d68054f2930ea410ef04a4c24a938e9021307004 (diff) | |
download | vyos-build-2382c90dc7a30d17628a11f9ff41f8c63867887a.tar.gz vyos-build-2382c90dc7a30d17628a11f9ff41f8c63867887a.zip |
hooks: fix installation of linux firmware files
Firmware files have ben installed in wrong subdirectory
(/lib/firmware/linux-firmware-<commitid>)
Diffstat (limited to 'data')
-rwxr-xr-x | data/live-build-config/hooks/live/40-linux-firmware.chroot | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/data/live-build-config/hooks/live/40-linux-firmware.chroot b/data/live-build-config/hooks/live/40-linux-firmware.chroot index 7d0de1f2..d3f34dec 100755 --- a/data/live-build-config/hooks/live/40-linux-firmware.chroot +++ b/data/live-build-config/hooks/live/40-linux-firmware.chroot @@ -14,9 +14,10 @@ if [ "${ret}" != "200" ]; then exit 1 fi -tar xf /tmp/linux-firmware-${COMMIT}.tar.gz -C /lib -mv /lib/linux-firmware-${COMMIT} /lib/firmware -rm -f /tmp/linux-firmware-${COMMIT}.tar.gz +tar xf /tmp/linux-firmware-${COMMIT}.tar.gz -C /tmp +mkdir -p /lib/firmware +mv /tmp/linux-firmware-${COMMIT}/* /lib/firmware +rm -rf /tmp/linux-firmware-${COMMIT}* # We do not need all firmware blobs .. cleanup RM_FIRMWARE=" \ |