archiso 827 Bytes
Newer Older
1
#!/usr/bin/env bash
2
3
#
# SPDX-License-Identifier: GPL-3.0-or-later
4

5
build() {
6
7
8
    add_module "cdrom"
    add_module "loop"
    add_module "dm-snapshot"
9
    add_module "overlay"
10
11

    add_runscript
12

13
    add_binary /usr/lib/udev/cdrom_id
14
15
16
17
    add_binary blockdev
    add_binary dmsetup
    add_binary losetup
    add_binary mountpoint
18
    add_binary truncate
19
    add_binary gpg
20
    add_binary grep
Simon Wilper's avatar
Simon Wilper committed
21
    add_binary pv
22

23
    add_file /usr/lib/udev/rules.d/60-cdrom_id.rules
24
25
26
    add_file /usr/lib/udev/rules.d/10-dm.rules
    add_file /usr/lib/udev/rules.d/95-dm-notify.rules
    add_file /usr/lib/initcpio/udev/11-dm-initramfs.rules /usr/lib/udev/rules.d/11-dm-initramfs.rules
27
    if [[ $ARCHISO_GNUPG_FD ]]; then
28
        mkdir -m 0700 -- "$BUILDROOT/gpg"
29
        gpg --homedir "$BUILDROOT/gpg" --import <& "$ARCHISO_GNUPG_FD"
30
    fi
Aaron Griffin's avatar
Aaron Griffin committed
31
}