parent
ad2565c8ff
commit
56b58c0a94
|
|
@ -8,7 +8,15 @@
|
||||||
# Peter Jones <pjones@redhat.com>
|
# Peter Jones <pjones@redhat.com>
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
[ -x /usr/bin/keyctl ] || return 1
|
[[ -x /usr/bin/keyctl ]] || return 1
|
||||||
|
|
||||||
|
# do not include module in hostonly mode,
|
||||||
|
# if no keys are present
|
||||||
|
if [[ $hostonly ]]; then
|
||||||
|
x=$(echo /lib/modules/keys/*)
|
||||||
|
[[ "${x}" = "/lib/modules/keys/*" ]] && return 255
|
||||||
|
fi
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -20,9 +28,10 @@ install() {
|
||||||
inst_dir /lib/modules/keys
|
inst_dir /lib/modules/keys
|
||||||
inst_binary /usr/bin/keyctl
|
inst_binary /usr/bin/keyctl
|
||||||
|
|
||||||
inst_hook initqueue/pre-trigger 01 "$moddir/load-modsign-keys.sh"
|
inst_hook pre-trigger 01 "$moddir/load-modsign-keys.sh"
|
||||||
|
|
||||||
for x in /lib/modules/keys/* ; do
|
for x in /lib/modules/keys/* ; do
|
||||||
[ "${x}" = "/lib/modules/keys/*" ] && break
|
[[ "${x}" = "/lib/modules/keys/*" ]] && break
|
||||||
inst_simple ${x}
|
inst_simple "${x}"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue