Browse Source

Fix boot with `fips` without a value

If you boot system with `fips` and not `fips=1` then you will get unary
operator expected error. This will fix this problem.
master
Jiri Konecny 6 years ago committed by Harald Hoyer
parent
commit
7ff0fcb723
  1. 2
      modules.d/01fips/fips-boot.sh
  2. 2
      modules.d/01fips/fips-noboot.sh

2
modules.d/01fips/fips-boot.sh

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
#!/bin/sh

if ! fipsmode=$(getarg fips) || [ $fipsmode = "0" ]; then
if ! fipsmode=$(getarg fips) || [ "$fipsmode" = "0" ]; then
rm -f -- /etc/modprobe.d/fips.conf >/dev/null 2>&1
elif getarg boot= >/dev/null; then
. /sbin/fips.sh

2
modules.d/01fips/fips-noboot.sh

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
#!/bin/sh

if ! fipsmode=$(getarg fips) || [ $fipsmode = "0" ]; then
if ! fipsmode=$(getarg fips) || [ "$fipsmode" = "0" ]; then
rm -f -- /etc/modprobe.d/fips.conf >/dev/null 2>&1
elif ! [ -f /tmp/fipsdone ]; then
. /sbin/fips.sh

Loading…
Cancel
Save