Skip to content

Commit 2d1e928

Browse files
authored
Merge pull request #819 from cgwalters/status-non-bootc
status: Output targeted message in non-bootc case, update docs
2 parents 4621d76 + 485516e commit 2d1e928

16 files changed

+88
-45
lines changed

docs/src/man/bootc-container-lint.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ part of a build process; it will error if any problems are detected.
2323

2424
# VERSION
2525

26-
v0.1.13
26+
v0.1.16

docs/src/man/bootc-container.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ bootc-container-help(8)
3030

3131
# VERSION
3232

33-
v0.1.13
33+
v0.1.16

docs/src/man/bootc-edit.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ Only changes to the \`spec\` section are honored.
3636

3737
# VERSION
3838

39-
v0.1.13
39+
v0.1.16

docs/src/man/bootc-install-print-configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ string-valued filesystem name suitable for passing to \`mkfs.\$type\`.
2727

2828
# VERSION
2929

30-
v0.1.13
30+
v0.1.16

docs/src/man/bootc-install-to-disk.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ bootc-install-to-disk - Install to the target block device
1010
\[**\--enforce-container-sigpolicy**\] \[**\--target-ostree-remote**\]
1111
\[**\--skip-fetch-check**\] \[**\--disable-selinux**\] \[**\--karg**\]
1212
\[**\--root-ssh-authorized-keys**\] \[**\--generic-image**\]
13-
\[**\--via-loopback**\] \[**-h**\|**\--help**\] \<*DEVICE*\>
13+
\[**\--stateroot**\] \[**\--via-loopback**\] \[**-h**\|**\--help**\]
14+
\<*DEVICE*\>
1415

1516
# DESCRIPTION
1617

@@ -129,6 +130,10 @@ boot.
129130
\- All bootloader types will be installed - Changes to the system
130131
firmware will be skipped
131132

133+
**\--stateroot**=*STATEROOT*
134+
135+
: The stateroot name to use. Defaults to \`default\`
136+
132137
**\--via-loopback**
133138

134139
: Instead of targeting a block device, write to a file via loopback
@@ -144,4 +149,4 @@ firmware will be skipped
144149

145150
# VERSION
146151

147-
v0.1.13
152+
v0.1.16

docs/src/man/bootc-install-to-existing-root.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ bootc-install-to-existing-root - Install to the host root filesystem
1010
\[**\--target-ostree-remote**\] \[**\--skip-fetch-check**\]
1111
\[**\--disable-selinux**\] \[**\--karg**\]
1212
\[**\--root-ssh-authorized-keys**\] \[**\--generic-image**\]
13-
\[**\--acknowledge-destructive**\] \[**-h**\|**\--help**\]
14-
\[*ROOT_PATH*\]
13+
\[**\--stateroot**\] \[**\--acknowledge-destructive**\]
14+
\[**-h**\|**\--help**\] \[*ROOT_PATH*\]
1515

1616
# DESCRIPTION
1717

@@ -115,6 +115,10 @@ boot.
115115
\- All bootloader types will be installed - Changes to the system
116116
firmware will be skipped
117117

118+
**\--stateroot**=*STATEROOT*
119+
120+
: The stateroot name to use. Defaults to \`default\`
121+
118122
**\--acknowledge-destructive**
119123

120124
: Accept that this is a destructive action and skip a warning timer
@@ -130,4 +134,4 @@ firmware will be skipped
130134

131135
# VERSION
132136

133-
v0.1.13
137+
v0.1.16

docs/src/man/bootc-install-to-filesystem.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ filesystem structure
1313
\[**\--target-ostree-remote**\] \[**\--skip-fetch-check**\]
1414
\[**\--disable-selinux**\] \[**\--karg**\]
1515
\[**\--root-ssh-authorized-keys**\] \[**\--generic-image**\]
16-
\[**-h**\|**\--help**\] \<*ROOT_PATH*\>
16+
\[**\--stateroot**\] \[**-h**\|**\--help**\] \<*ROOT_PATH*\>
1717

1818
# DESCRIPTION
1919

@@ -144,6 +144,10 @@ boot.
144144
\- All bootloader types will be installed - Changes to the system
145145
firmware will be skipped
146146

147+
**\--stateroot**=*STATEROOT*
148+
149+
: The stateroot name to use. Defaults to \`default\`
150+
147151
**-h**, **\--help**
148152

149153
: Print help (see a summary with -h)
@@ -157,4 +161,4 @@ mounting. To override this, use \`\--root-mount-spec\`.
157161

158162
# VERSION
159163

160-
v0.1.13
164+
v0.1.16

docs/src/man/bootc-install.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ bootc-install - Install the running container to a target
1010

1111
Install the running container to a target.
1212

13-
\## Understanding installations
13+
## Understanding installations
1414

1515
OCI containers are effectively layers of tarballs with JSON for
1616
metadata; they cannot be booted directly. The \`bootc install\` flow is
@@ -61,4 +61,4 @@ bootc-install-help(8)
6161

6262
# VERSION
6363

64-
v0.1.13
64+
v0.1.16

docs/src/man/bootc-rollback.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ rollback invocation.
3434

3535
# VERSION
3636

37-
v0.1.13
37+
v0.1.16

docs/src/man/bootc-status.md

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,21 @@ bootc-status - Display status
1111

1212
Display status
1313

14-
This will output a YAML-formatted object using a schema intended to
15-
match a Kubernetes resource that describes the state of the booted
16-
system.
14+
If standard output is a terminal, this will output a description of the
15+
bootc system state. If standard output is not a terminal, output a
16+
YAML-formatted object using a schema intended to match a Kubernetes
17+
resource that describes the state of the booted system.
1718

18-
The exact API format is not currently declared stable.
19+
## Parsing output via programs
20+
21+
Either the default YAML format or \`\--format=json\` can be used. Do not
22+
attempt to explicitly parse the output of \`\--format=humanreadable\` as
23+
it will very likely change over time.
24+
25+
## Programmatically detecting whether the system is deployed via bootc
26+
27+
Invoke e.g. \`bootc status \--json\`, and check if \`status.booted\` is
28+
not \`null\`.
1929

2030
# OPTIONS
2131

@@ -26,16 +36,18 @@ The exact API format is not currently declared stable.
2636
\
2737
*Possible values:*
2838

39+
> - humanreadable: Output in Human Readable format
40+
>
2941
> - yaml: Output in YAML format
3042
>
3143
> - json: Output in JSON format
3244
3345
**\--format-version**=*FORMAT_VERSION*
3446

3547
: The desired format version. There is currently one supported
36-
version, which is version \`0\`. Pass this option to explicitly
37-
request it; it is possible that multiple versions will be supported
38-
in the future
48+
version, which is exposed as both \`0\` and \`1\`. Pass this option
49+
to explicitly request it; it is possible that another future version
50+
2 or newer will be supported in the future
3951

4052
**\--booted**
4153

@@ -47,4 +59,4 @@ The exact API format is not currently declared stable.
4759

4860
# VERSION
4961

50-
v0.1.13
62+
v0.1.16

0 commit comments

Comments
 (0)