2012-05-27 11:53:08 +02:00
|
|
|
#!/bin/bash
|
2007-02-22 23:46:50 +01:00
|
|
|
# Created by Tobias Powalowski <tpowa@archlinux.org>
|
|
|
|
|
2011-07-06 15:55:39 +02:00
|
|
|
build ()
|
2007-02-22 23:46:50 +01:00
|
|
|
{
|
2013-05-22 09:59:30 +02:00
|
|
|
apps="lvm lvmdump lvmconf vgimportclone fsadm lvmetad"
|
2012-05-27 11:53:08 +02:00
|
|
|
for i in $apps; do
|
|
|
|
add_binary "$i"
|
|
|
|
done
|
2013-05-22 09:59:30 +02:00
|
|
|
symlinks="vgcfgbackup vgcfgrestore vgchange \
|
|
|
|
vgck vgconvert vgcreate vgdisplay vgexport vgextend vgimport \
|
|
|
|
vgmerge vgmknodes vgreduce vgremove vgrename vgs vgscan \
|
|
|
|
vgsplit pvchange pvck pvcreate pvdisplay pvmove pvremove \
|
|
|
|
pvresize pvs pvscan lvchange lvconvert lvcreate lvdisplay \
|
|
|
|
lvextend lvmchange lvmdiskscan lvmsadc lvmsar lvreduce lvremove \
|
|
|
|
lvrename lvresize lvs lvscan"
|
2012-08-24 17:33:01 +02:00
|
|
|
for i in $symlinks; do
|
|
|
|
add_binary "$(which $(basename $(readlink "$i")))"
|
|
|
|
add_symlink "$i" "$(which $(basename $(readlink "$i")))"
|
|
|
|
done
|
2010-03-17 00:09:17 +01:00
|
|
|
add_dir "/etc/lvm/backup/"
|
|
|
|
add_dir "/etc/lvm/archive/"
|
2012-08-15 22:18:16 +02:00
|
|
|
add_file "/etc/lvm/lvm.conf"
|
2012-08-11 13:27:09 +02:00
|
|
|
for i in /usr/lib/liblvm*; do
|
|
|
|
add_file "$i"
|
|
|
|
done
|
2012-05-27 11:53:08 +02:00
|
|
|
add_runscript
|
2007-02-22 23:46:50 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
help ()
|
|
|
|
{
|
|
|
|
cat<<HELPEOF
|
|
|
|
This hook loads the necessary modules for an LVM2 root device
|
|
|
|
on an arch boot image.
|
2009-11-28 18:31:39 +01:00
|
|
|
It depends on arch_devicemapper hook.
|
2007-02-22 23:46:50 +01:00
|
|
|
HELPEOF
|
|
|
|
}
|