[2/2] UBUNTU: Add modules.builtin.bin to prerm rm list

Message ID 1265887988-4008-3-git-send-email-bryan.wu@canonical.com
State Accepted
Delegated to: Andy Whitcroft
Headers show

Commit Message

Bryan Wu Feb. 11, 2010, 11:33 a.m.
From: Loïc Minier <lool@dooz.org>

BugLink: http://bugs.launchpad.net/bugs/516584

When purging linux-image-2.6.32-9-generic 2.6.32-9.13, dpkg would spit
out warnings about /lib/modules/2.6.32-9-generic being non-empty due to
/lib/modules/2.6.32-9-generic/modules.builtin.bin being left over.

NB: modules.builtin is actually shipped in the package, so not added to
the prerm remove list.

Signed-off-by: Loïc Minier <lool@dooz.org>
Signed-off-by: Andy Whitcroft <apw@canonical.com>

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


diff --git a/debian.fsl-imx51/control-scripts/prerm b/debian.fsl-imx51/control-scripts/prerm
index 68633bf..1d51b7e 100644
--- a/debian.fsl-imx51/control-scripts/prerm
+++ b/debian.fsl-imx51/control-scripts/prerm
@@ -284,7 +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
+    modules.alias.bin modules.builtin.bin modules.dep.bin modules.symbols.bin
   foreach my $extra_file (@files_to_remove) {