[Pkg-dkms-commits] [dkms] 03/06: Don't assume /boot/config-* exists, test first
Aron Xu
aron at debian.org
Wed Dec 28 13:18:36 UTC 2016
This is an automated email from the git hooks/post-receive script.
aron pushed a commit to branch master
in repository dkms.
commit 98f984eeea74f7b380997342f39683bbef68dc08
Author: Aron Xu <aron at debian.org>
Date: Wed Dec 28 20:57:55 2016 +0800
Don't assume /boot/config-* exists, test first
---
...-Don-t-assume-boot-config-exists-test-first.patch | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/debian/patches/0008-Don-t-assume-boot-config-exists-test-first.patch b/debian/patches/0008-Don-t-assume-boot-config-exists-test-first.patch
new file mode 100644
index 0000000..f77d9b5
--- /dev/null
+++ b/debian/patches/0008-Don-t-assume-boot-config-exists-test-first.patch
@@ -0,0 +1,20 @@
+From: Adam Conrad <adconrad at ubuntu.com>
+Date: Wed, 28 Dec 2016 19:55:34 +0800
+Subject: Don't assume /boot/config-* exists, test first.
+
+---
+ dkms_common.postinst | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/dkms_common.postinst b/dkms_common.postinst
+index d3d2829..d2ac712 100644
+--- a/dkms_common.postinst
++++ b/dkms_common.postinst
+@@ -53,6 +53,7 @@ _get_newest_kernel_debian() {
+ NEWEST_ABI=
+
+ for kernel in /boot/config-*; do
++ [ -f "$kernel" ] || continue
+ KERNEL=${kernel#*-}
+ KERNEL_VERSION=${KERNEL%%-*}
+ ABI=${KERNEL#*-}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-dkms/dkms.git
More information about the Pkg-dkms-commits
mailing list