Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

microdnf --installroot requires a bunch of options set that can be set via the config file #86

Open
Conan-Kudo opened this issue Nov 13, 2020 · 1 comment
Labels

Comments

@Conan-Kudo
Copy link
Member

Is there a reason why we're forcing a whole bunch of command line options to be set when the config file can do it?

microdnf/dnf/dnf-main.c

Lines 437 to 444 in 9edaf50

if (installroot_used &&
!(config_used && disable_plugins_loading && cachedir_used && reposdir_used && varsdir_used))
{
error = g_error_new_literal (G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE,
"The \"--installroot\" argument must be used together with \"--config\", "
"\"--noplugins\", \"--setopt=cachedir=<path>\", \"--setopt=reposdir=<path>\", "
"\"--setopt=varsdir=<path>\" arguments.");
goto out;

In the KIWI image builder, we set all these things up through the config file, rather than through options passed to DNF, and I'd like that to work with microdnf by doing microdnf --config=/path/to/file --installroot=/path/to/root ... as it does in DNF.

(cc: @schaefi, @davidcassany)

@Conan-Kudo
Copy link
Member Author

cc: @tabowling

@m-blaha m-blaha added the dnf5 label Jan 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants