Skip to content

Commit da32b29

Browse files
authored
Merge pull request #1173 from jmarrero/etc-man
man/bootc-rollback: add information about /etc
2 parents 016ce23 + 0fa13e2 commit da32b29

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

lib/src/cli.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ use clap::Parser;
1515
use clap::ValueEnum;
1616
use composefs::fsverity;
1717
use fn_error_context::context;
18+
use indoc::indoc;
1819
use ostree::gio;
1920
use ostree_container::store::PrepareResult;
2021
use ostree_ext::container as ostree_container;
@@ -518,6 +519,18 @@ pub(crate) enum Opt {
518519
///
519520
/// A systemd journal message will be logged with `MESSAGE_ID=26f3b1eb24464d12aa5e7b544a6b5468` in
520521
/// order to detect a rollback invocation.
522+
#[command(after_help = indoc! {r#"
523+
Note on Rollbacks and the `/etc` Directory:
524+
525+
When you perform a rollback (e.g., with `bootc rollback`), any
526+
changes made to files in the `/etc` directory won’t carry over
527+
to the rolled-back deployment. The `/etc` files will revert
528+
to their state from that previous deployment instead.
529+
530+
This is because `bootc rollback` just reorders the existing
531+
deployments. It doesn't create new deployments. The `/etc`
532+
merges happen when new deployments are created.
533+
"#})]
521534
Rollback(RollbackOpts),
522535
/// Apply full changes to the host specification.
523536
///

0 commit comments

Comments
 (0)