aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Kramkowski <tomasz@kramkow.ski>2026-11-15 02:04:29 +0000
committerTomasz Kramkowski <tomasz@kramkow.ski>2026-11-15 02:04:29 +0000
commita6dd381cbf4982fbd474abb5eb75a975fa4b7247 (patch)
tree4f08057fba3fdb415c7afe1116c750e0ac0ee633
parente2f9c9a3c190aeb15bd39e9baeccb78af417fc1e (diff)
downloadsteamvr-patches-a6dd381cbf4982fbd474abb5eb75a975fa4b7247.tar.gz
steamvr-patches-a6dd381cbf4982fbd474abb5eb75a975fa4b7247.tar.xz
steamvr-patches-a6dd381cbf4982fbd474abb5eb75a975fa4b7247.zip
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.
-rwxr-xr-xframe-steamos/patch-frame8
1 files changed, 7 insertions, 1 deletions
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"])