move uefi-lib to a seperate module

Harald Hoyer 2013-12-12 09:49:06 +01:00
parent 8bde20bc65
commit c26eb3eb3a
5 changed files with 20 additions and 9 deletions

View File

@ -4,14 +4,12 @@

# called by dracut
check() {
[[ $hostonly ]] || [[ $mount_needs ]] && return 1

return 0
}

# called by dracut
depends() {
echo fcoe bash
echo fcoe uefi-lib
return 0
}


View File

@ -3,11 +3,6 @@
# 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 ]] || [[ $mount_needs ]] && return 1

for i in dcbtool fipvlan lldpad ip readlink; do
type -P $i >/dev/null || return 1
done

View File

@ -42,7 +42,6 @@ install() {
mkdir -p ${initdir}/tmp

inst_simple "$moddir/dracut-lib.sh" "/lib/dracut-lib.sh"
inst_simple "$moddir/uefi-lib.sh" "/lib/uefi-lib.sh"

if ! dracut_module_included "systemd"; then
inst_multiple switch_root || dfatal "Failed to install switch_root"

View File

@ -0,0 +1,19 @@
#!/bin/bash
# module-setup for img-lib

# called by dracut
check() {
return 255
}

# called by dracut
depends() {
echo bash
return 0
}

# called by dracut
install() {
inst_simple "$moddir/uefi-lib.sh" "/lib/uefi-lib.sh"
}