2013-07-22 17:57:18 +02:00
|
|
|
#!/usr/bin/env 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
|
|
|
{
|
2022-01-21 10:17:10 +01:00
|
|
|
apps="lvmdump lvmconfig vgimportclone fsadm 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 \
|
2022-01-28 09:24:28 +01:00
|
|
|
lvextend lvmdiskscan lvmsadc lvmsar lvreduce lvremove lvrename lvresize lvs \
|
|
|
|
lvscan lvm_import_vdo lvmdevices lvmpolld vgimportdevices"
|
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/"
|
2012-08-11 13:27:09 +02:00
|
|
|
for i in /usr/lib/liblvm*; do
|
|
|
|
add_file "$i"
|
|
|
|
done
|
2007-02-22 23:46:50 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
help ()
|
|
|
|
{
|
|
|
|
cat<<HELPEOF
|
2021-10-04 11:13:50 +02:00
|
|
|
This hook adds complete lvm2 to archboot image,
|
2013-08-21 09:40:28 +02:00
|
|
|
which is not covered by lvm2 hook.
|
2007-02-22 23:46:50 +01:00
|
|
|
HELPEOF
|
|
|
|
}
|