FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu Kernel Team

 
 
LinkBack Thread Tools
 
Old 12-04-2008, 04:23 PM
Andy Whitcroft
 
Default clean out /lib/modules//updates/dkms

In addition to the fixes for the kernel packages to clean themselves
up correctly, DKMS is also making a mess and not cleaning
up when all its modules are removed. Specificially it makes a
/lib/modules/<version>/updates/dkms directory to hold the installed files.
When they are removed this directory is not removed again. This leads
dpkg to leave this directory as it is 'not empty'.

Below is a debdiff to the DKMS kernel prerm triggers to attempt to clear
these out when dkms is cleaning up for a kernel which is being removed.

-apw

=== 8< ===
diff -u dkms-2.0.20.4/debian/changelog dkms-2.0.20.4/debian/changelog
--- dkms-2.0.20.4/debian/changelog
+++ dkms-2.0.20.4/debian/changelog
@@ -1,3 +1,11 @@
+dkms (2.0.20.4-0ubuntu3) intrepid; urgency=low
+
+ * Ensure that the /lib/modules/<version>/updates/dkms directory is
+ removed if it is empty after a removal. This allows the modules
+ directory to be removed as it becomes empty. (LP: #300773)
+
+ -- Andy Whitcroft <apw@canonical.com> Thu, 04 Dec 2008 16:48:10 +0000
+
dkms (2.0.20.4-0ubuntu2) intrepid; urgency=low

* Backport these fixes from trunk:
only in patch2:
unchanged:
--- dkms-2.0.20.4.orig/kernel_prerm.d_dkms
+++ dkms-2.0.20.4/kernel_prerm.d_dkms
@@ -13,4 +13,8 @@
done < <(dkms status -k $inst_kern 2>/dev/null | grep ": installed")
fi

+rmdir --ignore-fail-on-non-empty
+ "/lib/modules/$inst_kern/updates/dkms"
+ "/lib/modules/$inst_kern/updates"
+
exit 0

--
kernel-team mailing list
kernel-team@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kernel-team
 
Old 12-04-2008, 04:27 PM
Mario Limonciello
 
Default clean out /lib/modules//updates/dkms

Andy:



Thanks for the patch here.* I've added this to DKMS git head.



Regards



Andy Whitcroft wrote:

In addition to the fixes for the kernel packages to clean themselves
up correctly, DKMS is also making a mess and not cleaning
up when all its modules are removed. Specificially it makes a
/lib/modules/<version>/updates/dkms directory to hold the installed files.
When they are removed this directory is not removed again. This leads
dpkg to leave this directory as it is 'not empty'.

Below is a debdiff to the DKMS kernel prerm triggers to attempt to clear
these out when dkms is cleaning up for a kernel which is being removed.

-apw

=== 8< ===
diff -u dkms-2.0.20.4/debian/changelog dkms-2.0.20.4/debian/changelog
--- dkms-2.0.20.4/debian/changelog
+++ dkms-2.0.20.4/debian/changelog
@@ -1,3 +1,11 @@
+dkms (2.0.20.4-0ubuntu3) intrepid; urgency=low
+
+ * Ensure that the /lib/modules/<version>/updates/dkms directory is
+ removed if it is empty after a removal. This allows the modules
+ directory to be removed as it becomes empty. (LP: #300773)
+
+ -- Andy Whitcroft <apw@canonical.com> Thu, 04 Dec 2008 16:48:10 +0000
+
dkms (2.0.20.4-0ubuntu2) intrepid; urgency=low

* Backport these fixes from trunk:
only in patch2:
unchanged:
--- dkms-2.0.20.4.orig/kernel_prerm.d_dkms
+++ dkms-2.0.20.4/kernel_prerm.d_dkms
@@ -13,4 +13,8 @@
done < <(dkms status -k $inst_kern 2>/dev/null | grep ": installed")
fi

+rmdir --ignore-fail-on-non-empty
+ "/lib/modules/$inst_kern/updates/dkms"
+ "/lib/modules/$inst_kern/updates"
+
exit 0





--


Mario Limonciello

Dell | Linux
Engineering

mario_limonciello@dell.com



--
kernel-team mailing list
kernel-team@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kernel-team
 

Thread Tools




All times are GMT. The time now is 08:01 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org