fix(image): use compatible findmnt mount guard options

This commit is contained in:
Codex
2026-10-13 05:10:43 +03:00
parent e4af8dbd75
commit 989591dfe4
2 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ sys.exit(code)
def rootfs_retry_guard_script():
"""Refuse deletion of a still-mounted export, including nested mountpoints."""
return r"""mounts=$(findmnt --list --raw --noheadings --output TARGET)
return r"""mounts=$(findmnt --raw --noheadings --output TARGET)
while IFS= read -r mountpoint; do
case "$mountpoint" in
"$root"|"$root/"*) echo 'Refusing to remove a mounted rootfs export' >&2; exit 1 ;;