network: don't use "ifup -m"
[dracut.git] / modules.d / 02fips-aesni / module-setup.sh
blob08c49fad756aea8dc8588d96defc36a58597d4dc
1 #!/bin/bash
3 # called by dracut
4 check() {
5 return 255
8 # called by dracut
9 depends() {
10 return 0
13 # called by dracut
14 installkernel() {
15 local _fipsmodules _mod
16 _fipsmodules="aesni-intel ghash_clmulni_intel"
18 mkdir -m 0755 -p "${initdir}/etc/modprobe.d"
20 for _mod in $_fipsmodules; do
21 if instmods $_mod; then
22 echo $_mod >> "${initdir}/etc/fipsmodules"
23 echo "blacklist $_mod" >> "${initdir}/etc/modprobe.d/fips.conf"
25 done
28 # called by dracut
29 install() {
30 return 0