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

Provide a --root or --installroot command line argument for sysrepocfg and sysrepocfg #1252

Closed
krobbins opened this issue Aug 1, 2018 · 1 comment

Comments

@krobbins
Copy link

krobbins commented Aug 1, 2018

I use Yocto Linux to build embedded Linux distributions. When building the root file system on a build host, I would like to be able to use sysrepoctl to install YANG modules and sysrepocfg to load default configurations from XML files. But, neither of these commands provide a command line argument to specify the root path. So, I have to delay installing YANG modules and loading default configurations until the first boot on the target hardware.

Please consider providing a --root or --installroot command line argument, so that the repository in the target root file system can be manipulated from a build host.

@krobbins krobbins changed the title Provide a =--root= or =--installroot= command line argument for =sysrepocfg= and =sysrepocfg= Provide a --root or --installroot command line argument for sysrepocfg and sysrepocfg Aug 1, 2018
@krobbins krobbins changed the title Provide a --root or --installroot command line argument for sysrepocfg and sysrepocfg Provide a --root or --installroot command line argument for sysrepocfg and sysrepocfg Aug 1, 2018
@krobbins krobbins changed the title Provide a --root or --installroot command line argument for sysrepocfg and sysrepocfg Provide a --root or --installroot command line argument for sysrepocfg and sysrepocfg Aug 1, 2018
@jktjkt
Copy link
Contributor

jktjkt commented Aug 2, 2018

We're using Buildroot internally, and we faced a similar problem as we're building on x86_64 and targeting ARM. A solution which works for us is to build sysrepo twice. The first build is for the host, the second one is for the target, and both share the target's staging area for /etc/sysrepo, the repository location. After that, one still needs to clean up the full paths which are embedded in the repo. Check the build recipes, I'll upstream them once the required changes which are already in sysrepo/netopeer2's devel branches hit a release.

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

3 participants