]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
man/systemd-repart: quote jq expression 41410/head
authorMorten Linderud <morten@linderud.pw>
Sun, 29 Mar 2026 12:20:28 +0000 (14:20 +0200)
committerMorten Linderud <morten@linderud.pw>
Sun, 29 Mar 2026 12:20:28 +0000 (14:20 +0200)
Some shells will try to parse this, or expand it, causing an error. Lets
quote it so it's simpler for people.

Signed-off-by: Morten Linderud <morten@linderud.pw>
man/systemd-repart.xml

index 2af431067f16c758206c9a7286b5ded5e970fb95..18e127be4648d09dd5b4dbe6515eb410fecf8f5d 100644 (file)
@@ -832,7 +832,7 @@ systemd-repart --definitions repart.d \
   --copy-source=/tmp/tree/ \
   --empty=create --size=600M \
   --json=short \
-  /tmp/img.raw | jq --raw-output0 .[-1].roothash &gt; /tmp/img.roothash
+  /tmp/img.raw | jq --raw-output0 ".[-1].roothash" &gt; /tmp/img.roothash
 
 openssl smime -sign -in /tmp/img.roothash \
   -inkey verity-private-key.pem \