From a6dd381cbf4982fbd474abb5eb75a975fa4b7247 Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Sun, 15 Nov 2026 02:04:29 +0000 Subject: frame-steamos: fix empty findmnt --mtab handling For some reason, instead of doing what the default kernel method does when there are no matching results and json output is requested (i.e. returning valid json, exiting 0, but producing no results) with `--mtab` findmnt exits 1. --- frame-steamos/patch-frame | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'frame-steamos/patch-frame') diff --git a/frame-steamos/patch-frame b/frame-steamos/patch-frame index a3e6440..4911006 100755 --- a/frame-steamos/patch-frame +++ b/frame-steamos/patch-frame @@ -192,10 +192,16 @@ def stop(): "--output", "TARGET", ], - check=True, capture_output=True, text=True, ) + if ( + result.returncode == 1 + and not result.stdout.strip() + and not result.stderr.strip() + ): + return + result.check_returncode() for target in reversed( [ Path(row["target"]) -- cgit v1.3.1