r626 - lvm2/trunk/debian

Bastian Blank waldi at alioth.debian.org
Wed Nov 19 10:51:38 UTC 2008


Author: waldi
Date: Wed Nov 19 10:51:38 2008
New Revision: 626

Log:
* debian/changelog: Update.
* debian/lvm2.postinst: Call init script.


Modified:
   lvm2/trunk/debian/changelog
   lvm2/trunk/debian/lvm2.postinst

Modified: lvm2/trunk/debian/changelog
==============================================================================
--- lvm2/trunk/debian/changelog	(original)
+++ lvm2/trunk/debian/changelog	Wed Nov 19 10:51:38 2008
@@ -5,6 +5,7 @@
   * Don't ignore locking failures in lvm2 init script.
   * Only activate vgs local.
   * Add clvm initscript. (closes: #336258)
+  * Try to activate anything in the lvm2 postinst. (closes: #506105)
 
  -- Bastian Blank <waldi at debian.org>  Tue, 18 Nov 2008 19:24:42 +0100
 

Modified: lvm2/trunk/debian/lvm2.postinst
==============================================================================
--- lvm2/trunk/debian/lvm2.postinst	(original)
+++ lvm2/trunk/debian/lvm2.postinst	Wed Nov 19 10:51:38 2008
@@ -2,10 +2,21 @@
 
 set -e
 
-if test "$1" = "configure"; then
-    echo -n "Backing up any LVM2 metadata that may exist..."
-    /sbin/vgcfgbackup >/dev/null 2>&1 || true
-    echo "done."
-fi
+case "$1" in
+    configure)
+        /sbin/vgcfgbackup >/dev/null 2>&1 || :
+        invoke-rc.d lvm2 start || :
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    *) 
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
 
 #DEBHELPER#
+
+exit 0



More information about the pkg-lvm-commits mailing list