diff --git a/src/app/main.c b/src/app/main.c index b3dbf957..04685ce6 100644 --- a/src/app/main.c +++ b/src/app/main.c @@ -62,6 +62,9 @@ static RpmOstreeCommand commands[] = { { "upgrade", RPM_OSTREE_BUILTIN_FLAG_SUPPORTS_PKG_INSTALLS, "Perform a system upgrade", rpmostree_builtin_upgrade }, + { "update", RPM_OSTREE_BUILTIN_FLAG_SUPPORTS_PKG_INSTALLS | RPM_OSTREE_BUILTIN_FLAG_HIDDEN, + "Alias for upgrade", + rpmostree_builtin_upgrade }, { "reload", 0, "Reload configuration", rpmostree_builtin_reload }, diff --git a/tests/vmcheck/test-upgrades.sh b/tests/vmcheck/test-upgrades.sh index a9384e89..946db38c 100755 --- a/tests/vmcheck/test-upgrades.sh +++ b/tests/vmcheck/test-upgrades.sh @@ -29,6 +29,9 @@ vm_ostreeupdate_prepare_reboot # Test base ostree update vm_ostreeupdate_create v2 +# Test the update → upgrade alias +vm_rpmostree update --check +# Then use the real command vm_rpmostree upgrade vm_reboot vm_start_httpd ostree_server $REMOTE_OSTREE 8888