allows unset WWROOT to continue to wwinit

Signed-off-by: Adam Michel <elfurbe@furbism.com>
This commit is contained in:
Adam Michel
2023-05-18 18:03:04 -07:00
committed by Jonathon Anderson
parent 027e17f626
commit 51561d901e

View File

@@ -31,7 +31,7 @@ ROOTFSTYPE=`stat -f -c "%T" /`
echo "${ROOTFSTYPE}"
if [ "${WWROOT}" != "${ROOTFSTYPE}" ]; then
if [ -n "${WWROOT}" ] && [ "${WWROOT}" != "${ROOTFSTYPE}" ]; then
echo "Requested rootfs type does not match current rootfs type. Pivoting to new rootfs..."
if [ "${WWROOT}" == "ramfs" ] || [ "${WWROOT}" == "tmpfs" ]; then
mkdir /newroot