andreahlert opened a new pull request, #61562:
URL: https://github.com/apache/airflow/pull/61562

   Closes #58932.
   
   When Airflow sources are checked out on Windows and accessed via `/mnt/c` in
   WSL2, running Breeze leads to permission errors, broken executable bits, and
   symlink issues because NTFS is not POSIX-compliant.
   
   This adds a check in `perform_environment_checks()` that detects the problem
   before Docker containers are started. The detection uses `stat -f -c %T` on
   the host to identify the Plan 9 filesystem (`v9fs`) that WSL2 uses for
   Windows drive mounts. If detected, Breeze exits with a message telling the
   user to clone the repo on a native Linux filesystem inside WSL2.
   
   The check is host-side only because inside Docker containers, the 9p layer
   is abstracted away by Docker Desktop (everything shows as `ext2/ext3`
   regardless of the source filesystem).
   
   **Guard rails:**
   - Skips entirely on non-Linux (macOS, native Windows)
   - Skips if not running under WSL2 (checks `/proc/version` for "microsoft")
   - Only flags `v9fs`/`9p` filesystem types
   
   **Testing:**
   I don't have a WSL2 environment with virtualization available right now, but
   the logic is straightforward and the check is isolated - it cannot affect
   non-WSL2 environments. Happy to adjust if reviewers can test on WSL2.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to