From 51561d901e5ef00cc96e08dff424940f27f355e1 Mon Sep 17 00:00:00 2001 From: Adam Michel Date: Thu, 18 May 2023 18:03:04 -0700 Subject: [PATCH] allows unset WWROOT to continue to wwinit Signed-off-by: Adam Michel --- overlays/wwinit/rootfs/init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/overlays/wwinit/rootfs/init b/overlays/wwinit/rootfs/init index dec300c3..a91e3676 100755 --- a/overlays/wwinit/rootfs/init +++ b/overlays/wwinit/rootfs/init @@ -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