diff --git a/dnf/cli/cli.py b/dnf/cli/cli.py index 5b04c8db37..61420df884 100644 --- a/dnf/cli/cli.py +++ b/dnf/cli/cli.py @@ -215,12 +215,11 @@ def do_transaction(self, display=()): logger.info(_("{prog} will only download packages, install gpg keys, and check the " "transaction.").format(prog=dnf.util.MAIN_PROG_UPPER)) if dnf.util.is_bootc_host(): - _container_msg = _(""" -*** This system is managed with ostree. Changes to the system -*** made with dnf will be lost with the next ostree-based update. -*** If you do not want to lose these changes, use 'rpm-ostree'. + _bootc_host_msg = _(""" +*** error: system is configured to be read-only; for more +*** information run `bootc status` or `ostree admin status`. """) - logger.info(_container_msg) + logger.info(_bootc_host_msg) raise CliError(_("Operation aborted.")) if self._promptWanted():