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: Implement the 'install' subcommand #557

Merged
merged 5 commits into from
Oct 8, 2024

Conversation

dcantrell
Copy link

Implement the 'install' subcommand for the bootc plugin and add documentation. Most of the options for this subcommand will come from global dnf command line option settings. The only option not handled is --os=OSNAME from rpm-ostree.

https://issues.redhat.com/browse/SWM-3090

doc/bootc.rst Outdated Show resolved Hide resolved
plugins/bootc.py Show resolved Hide resolved
doc/bootc.rst Outdated Show resolved Hide resolved
@evan-goode
Copy link
Member

Looks like we're missing the PKGSPEC args:

# dnf4 bootc install hello
usage: dnf bootc [-c [config file]] [-q] [-v] [--version] [--installroot [path]] [--nodocs] [--noplugins] [--enableplugin [plugin]] [--disableplugin [plugin]] [--releasever RELEASEVER] [--setopt SETOPTS] [--skip-broken] [-h] [--allowerasing] [-b | --nobest] [-C] [-R [minutes]] [-d [debug level]] [--debugsolver]
                 [--showduplicates] [-e ERRORLEVEL] [--obsoletes] [--rpmverbosity [debug level name]] [-y] [--assumeno] [--enablerepo [repo]] [--disablerepo [repo] | --repo [repo]] [--enable | --disable] [-x [package]] [--disableexcludes [repo]] [--repofrompath [repo,path]] [--noautoremove] [--nogpgcheck]
                 [--color COLOR] [--refresh] [-4] [-6] [--destdir DESTDIR] [--downloadonly] [--comment COMMENT] [--bugfix] [--enhancement] [--newpackage] [--security] [--advisory ADVISORY] [--bz BUGZILLA] [--cve CVES] [--sec-severity {Critical,Important,Moderate,Low}] [--forcearch ARCH] [--json] [--booted]
                 [--jsonpath EXPRESSION] [--pending-exit-77] [--uninstall PKG] [-A] [--force-replacefiles] [-r] [--allow-inactive] [--idempotent] [--unchanged-exit-77] [--peer]
                 [BOOTC]
dnf bootc: error: unrecognized arguments: hello

@dcantrell
Copy link
Author

Addressed these findings and pushed an updated version of the patch.

doc/bootc.rst Outdated Show resolved Hide resolved
plugins/bootc.py Outdated Show resolved Hide resolved
@evan-goode
Copy link
Member

Nice, should be good to go after merge conflicts are resolved and bootc status is fixed. This subcommand will be more useful after #558 is merged, currently the user has to wait a few minutes before getting any output.

evan-goode and others added 5 commits October 8, 2024 09:33
Useful for testing. The dnf-plugins-core RPM installs Python modules to
/usr/lib/python3.XX/site-packages whereas a `make install` will by
default install files to /usr/local/lib/python3.XX/site-packages.
For consumers of `dnf4 needs-restarting`'s output, it's useful to
separate the systemd services needing restart vs. the processes not
managed by systemd that need restarting. This new `dnf4 needs-restarting
--exclude-services` ONLY prints information about processes NOT managed
by systemd, and for listing systemd services that need to be restarted,
the existing `--services` flag can be used.

When both `--services` and `--exclude-services` are passed
`--exclude-services` is ignored.

For https://issues.redhat.com/browse/RHEL-56137.
Implement the 'install' subcommand for the bootc plugin and add
documentation.  Most of the options for this subcommand will come from
global dnf command line option settings.  The only option not handled
is --os=OSNAME from rpm-ostree.

https://issues.redhat.com/browse/SWM-3090
@dcantrell
Copy link
Author

Thanks for the second review. I think I have everything taken care of now.

@evan-goode evan-goode merged commit 61027a7 into rpm-software-management:bootc Oct 8, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants