]> git.ipfire.org Git - thirdparty/dracut.git/blob - modules.d/01fips/fips-boot.sh
a2f64ecb565874325b2625866f04c0f926bd73f6
[thirdparty/dracut.git] / modules.d / 01fips / fips-boot.sh
1 #!/bin/sh
2 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
3 # ex: ts=8 sw=4 sts=4 et filetype=sh
4
5 if ! fipsmode=$(getarg fips) || [ $fipsmode = "0" ]; then
6 rm -f /etc/modprobe.d/fips.conf >/dev/null 2>&1
7 elif getarg boot= >/dev/null; then
8 . /sbin/fips.sh
9 if mount_boot; then
10 do_fips || die "FIPS integrity test failed"
11 fi
12 fi