archboot/usr/lib/initcpio/install/archboot_lvm2

27 lines
917 B
Text
Raw Normal View History

#!/usr/bin/env bash
# SPDX-License-Identifier: GPL-2.0-only
2007-02-22 23:46:50 +01:00
# Created by Tobias Powalowski <tpowa@archlinux.org>
build ()
2007-02-22 23:46:50 +01:00
{
2022-03-14 21:32:33 +01:00
map add_binary 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 \
lvextend lvmdiskscan lvmsadc lvmsar lvreduce lvremove lvrename lvresize lvs \
2022-03-14 21:32:33 +01:00
lvscan lvm_import_vdo lvmdevices lvmpolld vgimportdevices
map add_dir "/etc/lvm/backup/" "/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,
which is not covered by lvm2 hook.
2007-02-22 23:46:50 +01:00
HELPEOF
}
# vim: set ft=sh ts=4 sw=4 et: