#!/bin/sh
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
# ex: ts=8 sw=4 sts=4 et filetype=sh
-do_fips()
+
+do_fipskernel()
{
- FIPSMODULES=$(cat /etc/fipsmodules)
boot=$(getarg boot=)
KERNEL=$(uname -r)
case "$boot" in
info "Umounting /boot"
umount /boot
+}
+do_fips()
+{
+ FIPSMODULES=$(cat /etc/fipsmodules)
+
+ if ! getarg rd.fips.skipkernel >/dev/null; then
+ do_fipskernel
+ fi
info "Loading and integrity checking all crypto modules"
for module in $FIPSMODULES; do
if [ "$module" != "tcrypt" ]; then