2013-07-22 17:57:18 +02:00
|
|
|
#!/usr/bin/env bash
|
2023-01-27 08:08:28 +01:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
2009-11-23 22:24:01 +01:00
|
|
|
# Created by Tobias Powalowski <tpowa@archlinux.org>
|
|
|
|
|
2011-07-06 15:55:39 +02:00
|
|
|
build ()
|
2009-11-23 22:24:01 +01:00
|
|
|
{
|
2023-04-25 21:55:50 +02:00
|
|
|
|
2023-02-17 21:37:58 +01:00
|
|
|
add_all_modules 'md/dm-*'
|
2023-04-25 21:55:50 +02:00
|
|
|
map add_binary dmsetup dmeventd blkdeactivate dmstats cryptsetup
|
2009-11-23 22:24:01 +01:00
|
|
|
add_dir "/dev/mapper"
|
2012-08-11 13:27:09 +02:00
|
|
|
add_full_dir "/usr/lib/device-mapper"
|
|
|
|
for i in /usr/lib/libdevmapper*; do
|
|
|
|
add_file "$i"
|
|
|
|
done
|
2023-04-25 21:55:50 +02:00
|
|
|
# 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
|
2023-04-25 21:55:50 +02:00
|
|
|
This hook includes devicemapper and encryption on an archboot image.
|
2009-11-23 22:24:01 +01:00
|
|
|
HELPEOF
|
|
|
|
}
|
2023-01-27 08:08:28 +01:00
|
|
|
# vim: set ft=sh ts=4 sw=4 et:
|