fix(image): use compatible findmnt mount guard options
This commit is contained in:
+1
-1
@@ -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 ;;
|
||||
|
||||
Reference in New Issue
Block a user