]> git.ipfire.org Git - thirdparty/dracut.git/blame - modules.d/01fips/fips-boot.sh
use "rm --" to guard against filenames beginning with "-"
[thirdparty/dracut.git] / modules.d / 01fips / fips-boot.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 getarg boot= >/dev/null; then
8 . /sbin/fips.sh
9 if mount_boot; then
10 do_fips || die "FIPS integrity test failed"
11 fi
12fi