Create /lib/firmware/updates as a link to /var/lib/firmware

This will provide the user a place to drop firmware files needed by the
kernel.

In the future (compat level >= 10) we'll want to move
debian/tmpfiles/linux-firmware.conf to debian/linux-firmware.tmpfile, so
it will be automatically installed by dh_installinit, and we can drop
debian/linux-firmware.install.
Signed-off-by: default avatarJoão Paulo Rechi Vita <jprvita@endlessm.com>

https://phabricator.endlessm.com/T12154
parent dda0c224
debian/tmpfiles/* /usr/lib/tmpfiles.d/
/var/lib/firmware /lib/firmware/updates
#!/bin/sh
# Remove directory created by linux-firmware.conf tmpfiles.d entry,
# except if it contains user-installed files.
DIR="/var/lib/firmware"
if [ -d ${DIR} ]; then
if [ -z "$(ls -A ${DIR})" ]; then
rmdir ${DIR}
else
echo "${DIR} is not empty, not removing"
fi
fi
......@@ -57,8 +57,10 @@ binary-indep: install-indep
dh_testdir
dh_testroot
dh_link -i
dh_installchangelogs -i
dh_installdocs -i
dh_install -i --fail-missing
dh_compress -i
dh_fixperms -i
dh_installdeb -i
......
d /var/lib/firmware 0755 - - -
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment