Patchwork [1/2] UBUNTU: Add 3 missing files to prerm remove file list

login
register
mail settings
Submitter Bryan Wu
Date Feb. 11, 2010, 11:33 a.m.
Message ID <1265887988-4008-2-git-send-email-bryan.wu@canonical.com>
Download mbox | patch
Permalink /patch/45120/
State Accepted
Delegated to: Andy Whitcroft
Headers show

Comments

Bryan Wu - Feb. 11, 2010, 11:33 a.m.
BugLink: http://bugs.launchpad.net/bugs/345623
BugLink: http://bugs.launchpad.net/bugs/415832

While purging some old kernels, Matt noticed warnings from dpkg
that it was not removing /lib/modules/xxx. "modules.alias.bin modules.dep.bin
modules.symbols.bin" 3 files are left behind. The new files are the result
of changes to the modules-tools-init package, e.g., modprobe and depmod now
create and use a binary cache file.

This patch fixes this by adding these 3 files to the prerm remove file list.

Signed-off-by: Bryan Wu <bryan.wu@canonical.com>
Acked-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Andy Whitcroft <apw@canonical.com>
Acked-by: Tim Gardner <tim.gardner@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>

(cherry-picked from 8b453930465c15f490ea44c2987b0a1bfe71ed66 for fsl-imx51)
Signed-off-by: Bryan Wu <bryan.wu@canonical.com>
---
 debian.fsl-imx51/control-scripts/prerm |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

diff --git a/debian.fsl-imx51/control-scripts/prerm b/debian.fsl-imx51/control-scripts/prerm
index 3d1fe38..68633bf 100644
--- a/debian.fsl-imx51/control-scripts/prerm
+++ b/debian.fsl-imx51/control-scripts/prerm
@@ -284,6 +284,7 @@  sub success () {
     modules.ieee1394map modules.pnpbiosmap
     modules.alias modules.ccwmap modules.inputmap
     modules.symbols modules.ofmap modules.seriomap
+    modules.alias.bin modules.dep.bin modules.symbols.bin
   };
 
   foreach my $extra_file (@files_to_remove) {