summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-11-10 22:12:45 +0100
committerChristian Poessinger <christian@poessinger.com>2019-11-10 22:12:45 +0100
commit2382c90dc7a30d17628a11f9ff41f8c63867887a (patch)
tree6b29969ecee55d602d047aa411dd854b21ad9571 /data
parentd68054f2930ea410ef04a4c24a938e9021307004 (diff)
downloadvyos-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-xdata/live-build-config/hooks/live/40-linux-firmware.chroot7
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=" \