summaryrefslogtreecommitdiffstats
path: root/install/base
blob: 446167c0790b96cfeaf815e90164ffefb22d7874 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash

build() {
    for dir in proc sys dev run /usr/{bin,sbin}; do
        add_dir "/$dir"
    done

    add_binary /lib/initcpio/busybox /bin/busybox
    add_binary /sbin/modprobe
    add_binary /sbin/blkid

    add_file "/lib/initcpio/init_functions" "/init_functions"
    add_file "/lib/initcpio/init" "/init"
    add_file "/etc/modprobe.d/usb-load-ehci-first.conf"

    # private API call is required here
    _add_file "/config" "$CONFIG" 644
}

help() {
    cat <<HELPEOF
This hook sets up all initial directories and installs base utilities. DO NOT
remove this one unless you know what you're doing.
HELPEOF
}

# vim: set ft=sh ts=4 sw=4 et: