Fix sh syntax for equal operator

Fixes #150
This commit is contained in:
Rob Jansen
2021-09-25 12:34:35 -04:00
parent c097c15b13
commit b69f000b8e

View File

@@ -29,12 +29,12 @@ chmod 755 /warewulf/wwinit
echo "Checking Rootfs type"
ROOTFSTYPE=`stat -f -c "%T" /`
if test "$WWROOT" == "initramfs"; then
if test "$WWROOT" = "initramfs"; then
echo "Provisioned to default initramfs file system: $ROOTFSTYPE"
echo "Calling WW Init"
exec /warewulf/wwinit
elif test "$WWROOT" == "tmpfs"; then
if test "$ROOTFSTYPE" == "tmpfs"; then
elif test "$WWROOT" = "tmpfs"; then
if test "$ROOTFSTYPE" = "tmpfs"; then
echo "ERROR: Switching the root file system requires the kernel argument: 'rootfstype=ramfs'"
else
echo "Setting up tmpfs root file system"