summaryrefslogtreecommitdiff
path: root/modules.d/95fcoe/module-info.sh
blob: d5500bbfe1ec23c65fb0fafe60acdc6e27c60eb7 (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
28
29
30
31
32
33
34
35
#!/bin/bash
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
# ex: ts=8 sw=4 sts=4 et filetype=sh

check() {
    # FIXME
    # If hostonly was requested, fail the check until we have some way of
    # knowing we are booting from FCoE
    [[ $hostonly ]] && return 1

    return 0
}

depends() {
    echo network rootfs-block
    return 0
}

installkernel() {
    instmods fcoe 8021q
}

install() {
    dracut_install ip 
    inst dcbtool 
    inst fipvlan
    inst lldpad

    mkdir -p "$initdir/var/lib/lldpad"

    inst "$moddir/fcoe-up" "/sbin/fcoe-up"
    inst_hook pre-udev 60 "$moddir/fcoe-genrules.sh"
    inst_hook cmdline 99 "$moddir/parse-fcoe.sh"
}