Skip to content

Instantly share code, notes, and snippets.

@dlight
Created February 6, 2012 18:41
Show Gist options
  • Select an option

  • Save dlight/1753981 to your computer and use it in GitHub Desktop.

Select an option

Save dlight/1753981 to your computer and use it in GitHub Desktop.
--- a/hooks/lvm2 2012-02-06 12:40:19.264960345 -0300
+++ b/hooks/lvm2 2012-02-06 12:40:00.498396658 -0300
@@ -19,7 +19,7 @@
[ "${quiet}" = "y" ] && LVMQUIET=">/dev/null"
msg "Activating logical volumes..."
- [ -d /etc/lvm ] && /sbin/lvm vgscan --sysinit
- eval /sbin/lvm vgchange --sysinit -a y $LVMQUIET
+ [ -d /etc/lvm ] && /sbin/lvm vgscan
+ eval /sbin/lvm vgchange -a y $LVMQUIET
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment