archiso 801 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
21

22
    add_file /usr/lib/udev/rules.d/60-cdrom_id.rules
23
24
25
    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
26
    if [[ $ARCHISO_GNUPG_FD ]]; then
27
28
        mkdir -p "$BUILDROOT/gpg"
        gpg --homedir "$BUILDROOT/gpg" --import <& "$ARCHISO_GNUPG_FD"
29
    fi
Aaron Griffin's avatar
Aaron Griffin committed
30
}