Skip to content

Commit d122853

Browse files
authored
Merge pull request #81 from sayanchowdhury/feature/ostree-rollback
Add the doc for Rollback under Using Ostree/Rebasing
2 parents 73c4401 + 1f831cc commit d122853

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

using_ostree/rebasing/rollback.adoc

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
[[rollback]]
2+
= {product-title} Rollback
3+
{product-author}
4+
{product-version}
5+
:data-uri:
6+
:icons:
7+
8+
=== Rollback
9+
10+
==== Using the atomic command
11+
12+
To switch back to the other downloaded tree on your system, use
13+
`atomic host rollback`. This command is particularly useful when there is a
14+
problem after upgrade (for example the new packages break a service
15+
that you’ve configured) because it lets you quickly switch back to the
16+
previous state.
17+
....
18+
$ atomic host rollback
19+
....
20+
21+
You can use the -r option to initiate a reboot immediately:
22+
....
23+
$ atomic host rollback -r
24+
....
25+
26+
27+
==== Using rpm-ostree
28+
29+
If you want to rollback to a previous tree using the `rpm-ostree` command. You
30+
can invoke:
31+
....
32+
$ rpm-ostree rollback
33+
....
34+
35+
You can also add `--reboot` argument to initiate a reboot immediately.
36+
....
37+
$ rpm-ostree rollback --reboot
38+
....

0 commit comments

Comments
 (0)