-
Notifications
You must be signed in to change notification settings - Fork 59
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
Cannot run some wic commands #30
Comments
Hmm, so digging into the code, wic's current behaviour is to use the native sysroot for the image you've built on the assumption that contains everything it needs, but that may only be true when wic is being invoked from within a build (i.e. IMAGE_FSTYPES contains "wic"). To get the full set of tools for running wic from the command line you could build them with bitbake, but I'm not sure that will actually work with current versions of the build system without explicitly telling wic the native sysroot that will contain the tools (which wouldn't be a single path with the instructions given in the manual). I think this is a bug in wic. |
@pauleggleton The requirements https://www.yoctoproject.org/docs/2.6/dev-manual/dev-manual.html#wic-requirements do say
Are you saying even after following all the requirements, it still won't use the native-sysroot? @bjurr, I'm assuming you have "wic" in your IMAGE_FSTYPES variable? |
@rewitt1 I'm using the meta-intel MACHINE intel-corei7-64, which defines IMAGE_FSTYPES += "wic" Just to be clear, the image.wic is generated properly, but I can't modify it without adding |
Facing the same issue. ERROR: Can't find executable parted |
This is a bug in wic. Ideally it would use the parted that exists in the native-sysroot, but it doesn't. There is actually an argument for wic to specify the sysroot but it didn't work by default either:
However, I was able to get it to work by using LD_LIBRARY_PATH
This shouldn't be necessary. If I file a bug against wic, I'll update this issue. If anyone else does, please feel free to do the same. |
I had some luck pointing wic to the recipe-sysroot-native directory build for wic-tools. Not sure why it doesn't use this by default.
|
Hi @rewitt1,
Just wondering if you did file such a bug? FWIW, the |
Using the ubuntu-16.04 image, I noticed that some (all?) wic commands fail because of the dependency on parted:
Manually adding
parted
to the list of installed packages seems to fix the issue, but I'm unsure if this is really the way to go since the requirements listed in the Yocto Dev Manual states that parted should be built through bitbake?https://www.yoctoproject.org/docs/2.6/dev-manual/dev-manual.html#wic-requirements
The text was updated successfully, but these errors were encountered: