File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -342,8 +342,14 @@ async fn upgrade(opts: UpgradeOpts) -> Result<()> {
342
342
let staged_unchanged = staged_digest
343
343
. map ( |d| d == fetched_digest)
344
344
. unwrap_or_default ( ) ;
345
+ let booted_unchanged = booted_image
346
+ . as_ref ( )
347
+ . map ( |img| img. manifest_digest . as_str ( ) == fetched_digest)
348
+ . unwrap_or_default ( ) ;
345
349
if staged_unchanged {
346
350
println ! ( "Staged update present, not changed." ) ;
351
+ } else if booted_unchanged {
352
+ println ! ( "No update available." )
347
353
} else {
348
354
let osname = booted_deployment. osname ( ) ;
349
355
crate :: deploy:: stage ( sysroot, & osname, & fetched, & spec) . await ?;
Original file line number Diff line number Diff line change @@ -19,6 +19,11 @@ case "${AUTOPKGTEST_REBOOT_MARK:-}" in
19
19
echo " booted into $image "
20
20
echo " ok status test"
21
21
22
+ test " null" = $( jq ' .status.staged' < status.json)
23
+ # Should be a no-op
24
+ bootc update
25
+ test " null" = $( jq ' .status.staged' < status.json)
26
+
22
27
test ' !' -w /usr
23
28
bootc usroverlay
24
29
test -w /usr
You can’t perform that action at this time.
0 commit comments