diff --git a/dnf/cli/cli.py b/dnf/cli/cli.py index 008262ea0b..d3844df344 100644 --- a/dnf/cli/cli.py +++ b/dnf/cli/cli.py @@ -215,7 +215,8 @@ 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() and \ - os.path.realpath(self.conf.installroot) == "/": + os.path.realpath(self.conf.installroot) == "/" and \ + not self.conf.downloadonly: _bootc_host_msg = _(""" *** Error: system is configured to be read-only; for more *** information run `bootc --help`.