diff --git a/src/disk.sh b/src/disk.sh index 594ce74..ccf3e89 100644 --- a/src/disk.sh +++ b/src/disk.sh @@ -346,7 +346,7 @@ checkFS () { DIR=$(dirname "$DISK_FILE") [ ! -d "$DIR" ] && return 0 - if [[ "${FS,,}" == "overlay"* && "$PODMAN" != [Yy1]* ]]; then + if [[ "${FS,,}" == "overlay"* && "${ENGINE,,}" == "docker" ]]; then warn "the filesystem of $DIR is OverlayFS, this usually means it was binded to an invalid path!" fi diff --git a/src/install.sh b/src/install.sh index 9f34199..89ca3d0 100644 --- a/src/install.sh +++ b/src/install.sh @@ -80,7 +80,7 @@ rm -f "$STORAGE/$BASE.system.img" # Check filesystem FS=$(stat -f -c %T "$STORAGE") -if [[ "${FS,,}" == "overlay"* && "$PODMAN" != [Yy1]* ]]; then +if [[ "${FS,,}" == "overlay"* && "${ENGINE,,}" == "docker" ]]; then warn "the filesystem of $STORAGE is OverlayFS, this usually means it was binded to an invalid path!" fi