Comment 4 for bug 1502798

Revision history for this message
Keng-Yu Lin (lexical) wrote :

The following patch is in wani

commit c4528c17ec18a66ad4c29f846119d82396b72064
Author: Keng-Yu Lin <email address hidden>
Date: Mon Oct 5 23:26:51 2015 +0800

    Install .blacklist.map

diff --git a/debian/backports-common-3.19.0-28.install b/debian/backports-common-3.19.0-28.install
index bbfae83..c4b7381 100644
--- a/debian/backports-common-3.19.0-28.install
+++ b/debian/backports-common-3.19.0-28.install
@@ -1,3 +1,4 @@
+.blacklist.map usr/share/backports-common
 scripts/blacklist.sh usr/share/backports-common
 scripts/compress_modules.sh usr/share/backports-common
 scripts/uninstall.sh usr/share/backports-common
diff --git a/debian/patches/0006-handle-blacklist-map.patch b/debian/patches/0006-handle-blacklist-map.patch
new file mode 100644
index 0000000..6795b25
--- /dev/null
+++ b/debian/patches/0006-handle-blacklist-map.patch
@@ -0,0 +1,11 @@
+--- a/scripts/blacklist.sh
++++ b/scripts/blacklist.sh
+@@ -1,7 +1,7 @@
+ #!/bin/bash
+
+ BLACKLIST_CONF="/etc/modprobe.d/backports.conf"
+-BLACKLIST_MAP=".blacklist.map"
++BLACKLIST_MAP="/usr/share/backports-common/.blacklist.map"
+
+ MODULE_DIR=$1
+ MODULE_UPDATES=$2
diff --git a/debian/patches/series b/debian/patches/series
index 9799f0f..0c4c511 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,3 +3,4 @@
 0003-use-deb-script-path.patch
 0004-move-scripts-to-postinst.patch
 0005-move-scripts-to-postrm.patch
+0006-handle-blacklist-map.patch