]> git.ipfire.org Git - thirdparty/dracut.git/blame - modules.d/01fips/fips-noboot.sh
use "rm --" to guard against filenames beginning with "-"
[thirdparty/dracut.git] / modules.d / 01fips / fips-noboot.sh
CommitLineData
4257798f
HH
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
5if ! fipsmode=$(getarg fips) || [ $fipsmode = "0" ]; then
32bd2fbb 6 rm -f -- /etc/modprobe.d/fips.conf >/dev/null 2>&1
4257798f
HH
7elif ! [ -f /tmp/fipsdone ]; then
8 . /sbin/fips.sh
9 mount_boot
10 do_fips || die "FIPS integrity test failed"
11fi