diff options
author | Harald Hoyer <harald@redhat.com> | 2009-11-27 14:55:02 +0100 |
---|---|---|
committer | Harald Hoyer <harald@redhat.com> | 2009-11-27 14:55:02 +0100 |
commit | 8e939709445a2af7f20bc6348bfe455b30004dd2 (patch) | |
tree | 2a04ab009a2d0f31d3bb13f922885e4e664c6491 | |
parent | b65f499f60e57c6621205916905ff38137a7fdc0 (diff) |
fips: do not activate fips module by default
-rw-r--r-- | dracut.spec | 1 | ||||
-rwxr-xr-x | modules.d/01fips/check | 19 |
2 files changed, 20 insertions, 0 deletions
diff --git a/dracut.spec b/dracut.spec index 7bf52a6..898f8fd 100644 --- a/dracut.spec +++ b/dracut.spec @@ -136,6 +136,7 @@ make install DESTDIR=$RPM_BUILD_ROOT sbindir=/sbin \ sysconfdir=/etc mandir=%{_mandir} WITH_SWITCH_ROOT=0%{?with_switch_root} echo %{name}-%{version}-%{release} > $RPM_BUILD_ROOT/%{_datadir}/dracut/modules.d/10rpmversion/dracut-version +rm $RPM_BUILD_ROOT/%{_datadir}/dracut/modules.d/01fips/check mkdir -p $RPM_BUILD_ROOT/boot/dracut mkdir -p $RPM_BUILD_ROOT/var/lib/dracut/overlay diff --git a/modules.d/01fips/check b/modules.d/01fips/check new file mode 100755 index 0000000..e5cd87e --- /dev/null +++ b/modules.d/01fips/check @@ -0,0 +1,19 @@ +#!/bin/bash + +. $dracutfunctions + +for program in ip arping; do + which $program >/dev/null 2>&1 + if [ $? -ne 0 ]; then + dwarning "Could not find program \"$program\" required by network." + exit 1 + fi +done +for program in dhclient brctl; do + which $program >/dev/null 2>&1 + if [ $? -ne 0 ]; then + dwarning "Could not find program \"$program\" it might be required by network." + fi +done +exit 255 + |