Unverified Commit 302c991c authored by Kroese's avatar Kroese Committed by GitHub
Browse files

fix: Change condition for OverlayFS warning (#1103)

parent a89007ee
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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

+1 −1
Original line number Diff line number Diff line
@@ -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