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

Support using --installroot without requiring an explicit --releasever #566

Open
polarathene opened this issue Sep 3, 2024 · 0 comments

Comments

@polarathene
Copy link

Given that --installroot uses host repos, is it not possible to infer the --releasever default so that it can be omitted like when not using --installroot?

docker run --rm -it registry.suse.com/bci/bci-base
zypper --releasever 15.6 --gpg-auto-import-keys --installroot /root-fs install -y glibc

For reference, zypper --help output:

--releasever            Set the value of $releasever in all .repo files (default: distribution version)
--installroot <DIR>     Operate on a different root directory, but share repositories with the host.

dnf previously had this same concern, but with dnf5 there is a --use-host-config option which avoids requiring an explicit value (or sourcing it from VERSION_ID in /etc/os-release). Perhaps that would be acceptable?

dnf --installroot /root-fs --use-host-config install -y glibc

dnf --help equivalent output:

--installroot=ABSOLUTE_PATH            set install root
--use-host-config                      use configuration, reposdir, and vars from the host system rather than the installroot
--releasever=RELEASEVER                override the value of $releasever in config and repo files
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

No branches or pull requests

1 participant