r/embeddedlinux • u/EmbedSoftwareEng • Feb 17 '26
Passing additional arguments to wget when it's invoked inside bitbake?
I have a rather unique (*cough* ZScaler *cough*) situation that I'd like to try solving with altered wget invocations. It appears that wget isn't looking in the "standard" places in my Linux system where the ZScalerRootCerts are stored, so when it goes to pull down rust crates from crates.io, the connection fails, because the certificate it sees was regenerated by the ZScaler servers in my corporate IT network on the fly, and so don't match anything that crates.io might be using. The ZScaler CA root certificates are stored in /usr/share/ca-certifiates/ZScalerRootCerts/, which is passed through read-only to my docker build container, along with the --net=host argument, so anything accessing the network will appear to the network as coming directly form the host environment.
If wget isn't looking in the entire /usr/share/ca-certificates/ hierarchy to find its CA certificates, then I need to pass the above directory to wget's --ca-directory= argument. But where in the bitbake architecture would I do that?
1
u/EmbedSoftwareEng Feb 18 '26
Okay.
In my build container, I do:
So, I leave it and relaunch it with
-v /usr/share/ca-certificates/trust-source/anchors/:/usr/lib/ssl:ro.Then, I try :
So, that's not where wget/openssl is looking. Let's make it look there.
Okay. So that works. Now, I just have to find the place where wget is actually looking.
How do I do that?
1
u/EmbedSoftwareEng Feb 18 '26
As usual, I am my own worst enemy.
I was launching my build container with a filesystem pass-through that only exposed my in-house ZScaler Root CA, and nothing else.
When I launch it with just
-v /etc/ssl:/usr/lib/ssl:ro, clamav builds just fine. This is an Arch workstation launching a debian-11 container.1
u/Elect_SaturnMutex Feb 18 '26
How are you invoking wget command from bitbake? usually in one of the steps, like do_configure or do_compile in your recipe, you can add your custom shell commands, you can add some debug info too using echo to see whats going on.
0
u/pinksnake2 Feb 18 '26
Maybe you should share your recipe 🤙