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

bootc: Add persistence config option #1678

Open
wants to merge 1 commit into
base: bootc
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions libdnf/conf/ConfigMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ class ConfigMain::Impl {
OptionString comment{nullptr};
OptionBool downloadonly{false}; // runtime only option
OptionBool ignorearch{false};
OptionEnum<std::string> persistence{"auto", {"auto", "persist", "transient"}};
OptionString module_platform_id{nullptr};
OptionBool module_stream_switch{false};
OptionBool module_obsoletes{false};
Expand Down Expand Up @@ -458,6 +459,7 @@ ConfigMain::Impl::Impl(Config & owner)
owner.optBinds().add("user_agent", user_agent);
owner.optBinds().add("countme", countme);
owner.optBinds().add("protect_running_kernel", protect_running_kernel);
owner.optBinds().add("persistence", persistence);

// Repo main config

Expand Down Expand Up @@ -613,6 +615,7 @@ OptionPath & ConfigMain::destdir() { return pImpl->destdir; }
OptionString & ConfigMain::comment() { return pImpl->comment; }
OptionBool & ConfigMain::downloadonly() { return pImpl->downloadonly; }
OptionBool & ConfigMain::ignorearch() { return pImpl->ignorearch; }
OptionEnum<std::string> & ConfigMain::persistence() { return pImpl->persistence; }

OptionString & ConfigMain::module_platform_id() { return pImpl->module_platform_id; }
OptionBool & ConfigMain::module_stream_switch() { return pImpl->module_stream_switch; }
Expand Down
1 change: 1 addition & 0 deletions libdnf/conf/ConfigMain.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ class ConfigMain : public Config {
OptionString & comment();
OptionBool & downloadonly();
OptionBool & ignorearch();
OptionEnum<std::string> & persistence();

OptionString & module_platform_id();
OptionBool & module_stream_switch();
Expand Down
Loading