fix error if /var/lib/dkms does not exist. Closes: #923718

This commit is contained in:
Steve McIntyre 2019-05-25 02:26:17 +01:00
parent 858db3ac9b
commit d86d671802
2 changed files with 10 additions and 2 deletions

7
debian/changelog vendored
View File

@ -1,3 +1,10 @@
shim-signed (1.31) UNRELEASED; urgency=medium
* update-secureboot-policy: fix error if /var/lib/dkms does not
exist. Closes: #923718
-- Steve McIntyre <93sam@debian.org> Sat, 25 May 2019 02:25:24 +0100
shim-signed (1.30) unstable; urgency=medium
* Force the built-using version to be 15+1533136590.3beb971-6. That

View File

@ -142,8 +142,9 @@ elif echo "$args" | grep -qc -- '--help'; then
exit 0
fi
if [ `find /var/lib/dkms -type d -print | wc -l ` -gt 1 ]; then
setup_mok_validation $enable_secureboot
if [ -d /var/lib/dkms ] &&
[ `find /var/lib/dkms -type d -print | wc -l ` -gt 1 ]; then
setup_mok_validation $enable_secureboot
else
echo "No DKMS packages installed: not changing Secure Boot validation state."
fi