[arch-commits] CVS update of extra/system/evms (evms.install evms_hook evms_install)

Tobias Powalowski tpowa at archlinux.org
Thu Oct 25 14:41:23 UTC 2007


    Date: Thursday, October 25, 2007 @ 10:41:23
  Author: tpowa
    Path: /home/cvs-extra/extra/system/evms

   Added: evms.install (1.1) evms_hook (1.1) evms_install (1.1)

'upgpkg: added latest patches and initcpio files'


--------------+
 evms.install |   15 +++++++++++++++
 evms_hook    |    8 ++++++++
 evms_install |   40 ++++++++++++++++++++++++++++++++++++++++
 3 files changed, 63 insertions(+)


Index: extra/system/evms/evms.install
diff -u /dev/null extra/system/evms/evms.install:1.1
--- /dev/null	Thu Oct 25 10:41:23 2007
+++ extra/system/evms/evms.install	Thu Oct 25 10:41:23 2007
@@ -0,0 +1,15 @@
+# arg 1:  the new package version
+post_install() {
+  echo "ATTENTION EVMS:"
+  echo "----------"
+  echo "In order to use 'evmsgui' you need to install the 'gtk' package."
+  echo "----------"
+}
+
+post_upgrade() {
+  post_install $1
+}
+
+op=$1
+shift
+$op $*
Index: extra/system/evms/evms_hook
diff -u /dev/null extra/system/evms/evms_hook:1.1
--- /dev/null	Thu Oct 25 10:41:23 2007
+++ extra/system/evms/evms_hook	Thu Oct 25 10:41:23 2007
@@ -0,0 +1,8 @@
+# vim: set ft=sh:
+
+#mkinitcpio hook for loading a root filesystem on an EVMS volume.
+#2007-08-13 02:15 UTC by Felix (01001101 at femail.mine.nu)
+
+run_hook () {
+	/sbin/evms_activate
+}
Index: extra/system/evms/evms_install
diff -u /dev/null extra/system/evms/evms_install:1.1
--- /dev/null	Thu Oct 25 10:41:23 2007
+++ extra/system/evms/evms_install	Thu Oct 25 10:41:23 2007
@@ -0,0 +1,40 @@
+# vim: set ft=sh:
+
+#mkinitcpio hook for loading a root filesystem on an EVMS volume.
+#2007-08-13 02:15 UTC by Felix (01001101 at femail.mine.nu)
+
+install () {
+	MODULES="dm_mod md_mod"
+	BINARIES="evms_activate"
+	FILES=""
+	SCRIPT="evms"
+	add_binary "/usr/sbin/evms_activate" "/sbin/evms_activate"
+	add_file "/usr/lib/libgcc_s.so.1" "/usr/lib/libgcc_s.so.1"
+	add_file "/lib/libuuid.so.1" "/lib/libuuid.so.1"
+	add_file "/etc/evms.conf" "/etc/evms.conf"
+	add_full_dir "/usr/lib/evms"
+}
+
+help ()
+{
+cat<<HELPEOF
+  This hook loads the necessary modules for using a root filesystem managed by
+  EVMS and then runs evms_activate. The root filesystem can be any kind of EVMS
+  volume; only /boot needs to be a 'compatibility' partition.
+
+  IMPORTANT NOTE!
+  EVMS RAID volumes do not look like normal RAID volumes if they are inside any
+  kind of container object. Consequently, things like the [autodetect] hook may
+  not see them. You should remove the [autodetect] hook from your
+  mkinitcpio.conf if you plan to use this EVMS hook and your root filesystem is
+  EVMS RAID.
+
+  Kernel Parameters:
+  No special ones just now. Specify your root= as whatever the EVMS path to it
+  will be, e.g.
+  ::: Example ::: root=/dev/evms/root
+  Do NOT specify RAID arrays if you use EVMS to manage them; EVMS will take 
+  care of that for you.
+
+HELPEOF
+}




More information about the arch-commits mailing list