| Summary: | runqemu-gen-tapdevs not working when using directly from build-dir | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Jose Perez C <jose.perez.carranza> |
| Component: | Scripts and Tools | Assignee: | Stephano Cetola <stephano> |
| Status: | RESOLVED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium | CC: | akuster, brian.avery, randy.macleod, ross.burton |
| Version: | 2.4 | ||
| Target Milestone: | 2.5 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | Backport 2.3.3? | ||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |
Correction to step 3
3. Under build directory run
$ sudo runqemu-gen-tapdevs 1000 1000 4 tmp/sysroots-components/x86_64/qemu-helper-native/usr/bin
Note: below command works correctly
sudo ./../scripts/runqemu-gen-tapdevs 1000 1000 4 tmp/sysroots-components/x86_64/qemu-helper-native/usr/bin
This is because the PATH on most modern systems reset for security reasons when you sudo. So, we probably should close this bug and open another bug for documentation to make explicit that you should run it as sudo <absolute path> or <relative path> but should NOT rely on the PATH correctly resolving. We may also want to add in the documentation bug that for this tool to work, the user needs to have built qemu-helper-native or else the tunctl command (which is what this uses) will not be available. |
script runqemu-gen-tapdevs is not working when is used from build directory. Note: Is working correctly when used from scripts directory commit b32174e58e89119e3ca2315030629a6580ccbd52 STEPS TO REPRODUCE: 1. clone poky 2. $source oe-init-build-env 3. Under build directory run $ sudo ./../scripts/runqemu-gen-tapdevs 1000 1000 4 tmp/sysroots-components/x86_64/qemu-helper-native/usr/bin EXPECTED RESULT: script works correctly and TAP devices are generated ACTUAL RESULT: sudo: runqemu-gen-tapdevs: command not found