archboot/usr/lib/initcpio/install/archboot_devicemapper

29 lines
765 B
Text
Raw Normal View History

#!/usr/bin/env bash
# SPDX-License-Identifier: GPL-2.0-only
2009-11-23 22:24:01 +01:00
# Created by Tobias Powalowski <tpowa@archlinux.org>
build ()
2009-11-23 22:24:01 +01:00
{
2023-02-17 21:37:58 +01:00
add_all_modules 'md/dm-*'
2023-06-20 23:02:18 +02:00
map add_binary dmsetup dmeventd blkdeactivate dmstats cryptsetup \
integritysetup veritysetup
add_dir /dev/mapper
add_full_dir /usr/lib/device-mapper
2012-08-11 13:27:09 +02:00
for i in /usr/lib/libdevmapper*; do
add_file "${i}"
2012-08-11 13:27:09 +02:00
done
# cryptsetup calls pthread_create(), which dlopen()s libgcc_s.so.1
add_file /usr/lib/libgcc_s.so.1
# cryptsetup loads the legacy provider which is required for whirlpool
add_file /usr/lib/ossl-modules/legacy.so
2009-11-23 22:24:01 +01:00
}
help ()
{
cat<<HELPEOF
This hook includes devicemapper and encryption on an archboot image.
2009-11-23 22:24:01 +01:00
HELPEOF
}
# vim: set ft=sh ts=4 sw=4 et: