archboot/usr/lib/initcpio/install/arch_lvm2

33 lines
1.2 KiB
Text
Raw Normal View History

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>
build ()
2007-02-22 23:46:50 +01:00
{
apps="/sbin/lvm /sbin/fsadm /sbin/lvmdump /sbin/vgcfgbackup /sbin/vgcfgrestore /sbin/vgchange \
/sbin/vgck /sbin/vgconvert /sbin/vgcreate /sbin/vgdisplay /sbin/vgexport /sbin/vgextend /sbin/vgimport \
/sbin/vgmerge /sbin/vgmknodes /sbin/vgreduce /sbin/vgremove /sbin/vgrename /sbin/vgs /sbin/vgscan \
/sbin/vgsplit /sbin/pvchange /sbin/pvck /sbin/pvcreate /sbin/pvdisplay /sbin/pvmove /sbin/pvremove \
/sbin/pvresize /sbin/pvs /sbin/pvscan /sbin/lvchange /sbin/lvconvert /sbin/lvcreate /sbin/lvdisplay \
/sbin/lvextend /sbin/lvmchange /sbin/lvmdiskscan /sbin/lvmsadc /sbin/lvmsar /sbin/lvreduce /sbin/lvremove \
/sbin/lvrename /sbin/lvresize /sbin/lvs /sbin/lvscan"
2012-05-27 11:53:08 +02:00
for i in $apps; do
add_binary "$i"
done
2010-03-17 00:09:17 +01:00
add_dir "/etc/lvm/backup/"
add_dir "/etc/lvm/archive/"
add_file "/usr/share/archboot/lvm2/etc/lvm/lvm.conf" "/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.
It depends on arch_devicemapper hook.
2007-02-22 23:46:50 +01:00
HELPEOF
}