summaryrefslogtreecommitdiff
path: root/archiso/install/archiso_pxe_nbd
blob: 189a7b10c35e90c610a65c59017513f182f4aabe (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
# vim: set ft=sh:

install ()
{
    MODULES="nbd"
    MODULES="${MODULES} $(comm -2 -3 <(checked_modules "/drivers/net/" | sort) \
                                     <(find $MODULEDIR/kernel/drivers/net/{irda,phy,wimax,wireless} \
                                            -name '*.ko*' \
                                            -exec bash -c 'printf "%s\n" "${@%%.ko*}" | sed "s@.*/@@;s@-@_@" | sort' _ {} +) \
                                     | grep -v -e 'ppp_' -e 'plip' -e 'pppoe')"
    BINARIES=""
    FILES=""
    SCRIPT="archiso_pxe_nbd"

    add_binary "/usr/sbin/nbd-client" "/bin/nbd-client"
    add_binary "/lib/initcpio/ipconfig" "/bin/ipconfig"
}

help ()
{
cat<<HELPEOF
  This hook loads the necessary modules for boot via PXE and NBD.
HELPEOF
}