[Glibc-bsd-commits] r1423 - trunk/kfreebsd-common/debian

Robert Millan rmh at costa.debian.org
Tue Apr 4 12:51:07 UTC 2006


Author: rmh
Date: 2006-04-04 12:51:07 +0000 (Tue, 04 Apr 2006)
New Revision: 1423

Modified:
   trunk/kfreebsd-common/debian/changelog
   trunk/kfreebsd-common/debian/init.d
   trunk/kfreebsd-common/debian/postinst
Log:
Fix /etc/mtab symlink in both init.d and postinst.

Modified: trunk/kfreebsd-common/debian/changelog
===================================================================
--- trunk/kfreebsd-common/debian/changelog	2006-04-02 19:08:12 UTC (rev 1422)
+++ trunk/kfreebsd-common/debian/changelog	2006-04-04 12:51:07 UTC (rev 1423)
@@ -1,8 +1,9 @@
-kfreebsd-common (0.2.1) UNRELEASED; urgency=low
+kfreebsd-common (0.2.1) unreleased; urgency=low
 
   * templates: s/dpkg-reconfigure kfreebsd-config/dpkg-reconfigure kfreebsd-common/g.
+  * Fix /etc/mtab symlink in both init.d and postinst.
 
- -- Robert Millan <rmh at aybabtu.com>  Wed, 15 Mar 2006 18:04:54 +0100
+ -- Robert Millan <rmh at aybabtu.com>  Tue,  4 Apr 2006 14:49:55 +0200
 
 kfreebsd-common (0.2.0) unreleased; urgency=low
 

Modified: trunk/kfreebsd-common/debian/init.d
===================================================================
--- trunk/kfreebsd-common/debian/init.d	2006-04-02 19:08:12 UTC (rev 1422)
+++ trunk/kfreebsd-common/debian/init.d	2006-04-04 12:51:07 UTC (rev 1423)
@@ -63,4 +63,10 @@
 
 echo "done."
 
+if test -f /etc/mtab ; then
+  echo "Warning: /etc/mtab is a regular file, replacing with symlink."
+  rm -f /etc/mtab
+fi
+ln -sf /proc/mounts /etc/mtab
+
 exit 0

Modified: trunk/kfreebsd-common/debian/postinst
===================================================================
--- trunk/kfreebsd-common/debian/postinst	2006-04-02 19:08:12 UTC (rev 1422)
+++ trunk/kfreebsd-common/debian/postinst	2006-04-04 12:51:07 UTC (rev 1423)
@@ -70,6 +70,8 @@
       # need to worry about consistency this time)
       /etc/init.d/kldutils start
 
+      # Fix /etc/mtab in old systems
+      /etc/init.d/kfreebsd-common start
     ;;
 
     abort-upgrade|abort-remove|abort-deconfigure)




More information about the Glibc-bsd-commits mailing list