allows unset WWROOT to continue to wwinit
Signed-off-by: Adam Michel <elfurbe@furbism.com>
This commit is contained in:
committed by
Jonathon Anderson
parent
027e17f626
commit
51561d901e
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user