postinst does not work

Bug #1502798 reported by Keng-Yu Lin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linux Backports
Fix Released
High
Phidias

Bug Description

kengyu:~/git $ sudo dpkg -i backports-wifi-3.19.0-28_4.1.1-1-0ubuntu1_amd64.deb
(讀取資料庫 ... 目前共安裝了 343017 個檔案和目錄。)
準備解開 backports-wifi-3.19.0-28_4.1.1-1-0ubuntu1_amd64.deb ...
Unpacking backports-wifi-3.19.0-28 (4.1.1-1-0ubuntu1) over (4.1.1-1-0ubuntu1) ...
設定 backports-wifi-3.19.0-28 (4.1.1-1-0ubuntu1) ...
grep: .blacklist.map: 沒有此一檔案或目錄
depmod will prefer updates/ over kernel/ -- OK!
Note:
You may or may not need to update your initramfs, you should if
any of the modules installed are part of your initramfs. To add
support for your distribution to do this automatically send a
patch against "update-initramfs.sh". If your distribution does not
require this send a patch with the '/usr/bin/lsb_release -i -s'
("Ubuntu") tag for your distribution to avoid this warning.

Your backported driver modules should be installed now.
Reboot.

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

Action: to understand what the scripts in backports/scripts do.

Changed in backports:
importance: Undecided → High
status: New → Confirmed
assignee: nobody → Phidias (phidias-chiang)
Revision history for this message
Keng-Yu Lin (lexical) wrote :

Use the command to build:
quilt push -a;fdr clean;fdr binary;quilt pop -a

Keng-Yu Lin (lexical)
Changed in backports:
milestone: none → 1.0
Revision history for this message
Phidias (phidias-chiang) wrote :

There's a .blacklist.map in backport/ :

# Update this map when a driver gets renamed or
# symbols from old drivers get moved to a newer
# driver. If you have the driver on the right
# hand side it will be blacklisted upon installation
# only if you actually installed the driver on the
# left.

# new-driver old-driver
iwlwifi iwlagn
iwl4965 iwlagn
videodev v4l2-compat-ioctl32

This file is used by backport/scripts/blacklist.sh, it's simply a map used to blacklist old module name to new name. I think this file is necessary for postinst.

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

Keng-Yu Lin (lexical)
Changed in backports:
milestone: 1.0 → 0.1
Phidias (phidias-chiang)
Changed in backports:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.