File tree Expand file tree Collapse file tree 2 files changed +6
-14
lines changed Expand file tree Collapse file tree 2 files changed +6
-14
lines changed Original file line number Diff line number Diff line change @@ -28,9 +28,6 @@ pub(crate) struct UpgradeOpts {
28
28
#[ clap( long) ]
29
29
pub ( crate ) quiet : bool ,
30
30
31
- #[ clap( long) ]
32
- pub ( crate ) touch_if_changed : Option < Utf8PathBuf > ,
33
-
34
31
/// Check if an update is available without applying it.
35
32
///
36
33
/// This only downloads an updated manifest and image configuration (i.e. typically kilobyte-sized metadata)
@@ -376,9 +373,6 @@ async fn upgrade(opts: UpgradeOpts) -> Result<()> {
376
373
}
377
374
}
378
375
if changed {
379
- if let Some ( path) = opts. touch_if_changed {
380
- std:: fs:: write ( & path, "" ) . with_context ( || format ! ( "Writing {path}" ) ) ?;
381
- }
382
376
if opts. apply {
383
377
crate :: reboot:: reboot ( ) ?;
384
378
}
Original file line number Diff line number Diff line change @@ -4,9 +4,8 @@ bootc-upgrade - Download and queue an updated container image to apply
4
4
5
5
# SYNOPSIS
6
6
7
- ** bootc-upgrade** \[ ** \- -quiet** \] \[ ** \- -touch-if-changed** \]
8
- \[ ** \- -check** \] \[ ** \- -apply** \] \[ ** -h** \| ** \- -help** \]
9
- \[ ** -V** \| ** \- -version** \]
7
+ ** bootc-upgrade** \[ ** \- -quiet** \] \[ ** \- -check** \] \[ ** \- -apply** \]
8
+ \[ ** -h** \| ** \- -help** \] \[ ** -V** \| ** \- -version** \]
10
9
11
10
# DESCRIPTION
12
11
@@ -31,13 +30,12 @@ outside of a \`bootc upgrade \--apply\` do \*not\* upgrade.
31
30
32
31
: Dont display progress
33
32
34
- ** \- -touch-if-changed** =* TOUCH_IF_CHANGED*
35
-
36
- :
37
-
38
33
** \- -check**
39
34
40
- : Check if an update is available without applying it
35
+ : Check if an update is available without applying it.
36
+
37
+ This only downloads an updated manifest and image configuration (i.e.
38
+ typically kilobyte-sized metadata) as opposed to the image layers.
41
39
42
40
** \- -apply**
43
41
You can’t perform that action at this time.
0 commit comments