Skip to content

Commit 688b347

Browse files
evan-goodecgwalters
authored andcommitted
doc: Adjust for usroverlay --read-only
Signed-off-by: Evan Goode <mail@evangoo.de>
1 parent c9b42c3 commit 688b347

3 files changed

Lines changed: 15 additions & 7 deletions

File tree

crates/lib/src/cli.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,9 @@ pub(crate) struct StatusOpts {
269269
/// Add a transient overlayfs on /usr
270270
#[derive(Debug, Parser, PartialEq, Eq)]
271271
pub(crate) struct UsrOverlayOpts {
272-
/// Mount the overlayfs as read-only.
272+
/// Mount the overlayfs as read-only. A read-only overlayfs is useful since it may be remounted
273+
/// as read/write in a private mount namespace and written to while the mount point remains
274+
/// read-only to the rest of the system.
273275
#[clap(long)]
274276
pub(crate) read_only: bool,
275277
}
@@ -793,7 +795,7 @@ pub(crate) enum Opt {
793795
///
794796
/// Shows bootc system state. Outputs YAML by default, human-readable if terminal detected.
795797
Status(StatusOpts),
796-
/// Add a transient writable overlayfs on `/usr`.
798+
/// Add a transient overlayfs on `/usr`.
797799
///
798800
/// Allows temporary package installation that will be discarded on reboot.
799801
#[clap(alias = "usroverlay")]

docs/src/man/bootc-usr-overlay.8.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# NAME
22

3-
bootc-usr-overlay - Adds a transient writable overlayfs on `/usr` that
4-
will be discarded on reboot
3+
bootc-usr-overlay - Adds a transient overlayfs on `/usr` that will be discarded
4+
on reboot
55

66
# SYNOPSIS
77

88
**bootc usr-overlay** \[*OPTIONS...*\]
99

1010
# DESCRIPTION
1111

12-
Adds a transient writable overlayfs on `/usr` that will be discarded
13-
on reboot.
12+
Adds a transient overlayfs on `/usr` that will be discarded on reboot. The
13+
overlayfs is read/write by default.
1414

1515
## USE CASES
1616

@@ -31,7 +31,13 @@ Almost always, a system process will hold a reference to the open mount
3131
point. You can however invoke `umount -l /usr` to perform a "lazy
3232
unmount".
3333

34+
# OPTIONS
35+
3436
<!-- BEGIN GENERATED OPTIONS -->
37+
**--read-only**
38+
39+
Mount the overlayfs as read-only. A read-only overlayfs is useful since it may be remounted as read/write in a private mount namespace and written to while the mount point remains read-only to the rest of the system
40+
3541
<!-- END GENERATED OPTIONS -->
3642

3743
# VERSION

docs/src/man/bootc.8.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ pulled and `bootc upgrade`.
3030
| **bootc rollback** | Change the bootloader entry ordering; the deployment under `rollback` will be queued for the next boot, and the current will become rollback. If there is a `staged` entry (an unapplied, queued upgrade) then it will be discarded |
3131
| **bootc edit** | Apply full changes to the host specification |
3232
| **bootc status** | Display status |
33-
| **bootc usr-overlay** | Add a transient writable overlayfs on `/usr` |
33+
| **bootc usr-overlay** | Add a transient overlayfs on `/usr` |
3434
| **bootc install** | Install the running container to a target |
3535
| **bootc container** | Operations which can be executed as part of a container build |
3636
| **bootc composefs-finalize-staged** | |

0 commit comments

Comments
 (0)