dracut-systemd/dracut-initqueue: only start service if really needed
[dracut.git] / modules.d / 97masterkey / module-setup.sh
blob49b006e7e519d1eab6e72813843f631295fd6ae8
1 #!/bin/bash
3 # called by dracut
4 check() {
5 [[ $hostonly ]] && {
6 require_binaries keyctl uname || return 1
9 return 255
12 # called by dracut
13 depends() {
14 return 0
17 # called by dracut
18 installkernel() {
19 instmods trusted encrypted
22 # called by dracut
23 install() {
24 inst_multiple keyctl uname
25 inst_hook pre-pivot 60 "$moddir/masterkey.sh"