Conversation

Jarkko Sakkinen

For VM/embedded images socat is pretty alternative to curl as it has 50% less dependencies and you can still web e.g.,

printf 'GET / HTTP/1.1\r\nHost: www.iki.fi\r\nConnection: close\r\n\r\n' | socat OPENSSL:www.iki.fi:443 -

I’ve replaced curl with socat in my BuildRoot images for kernel testing because it is less bloated than curl ;-)

1
0
1
Dropping curl has significant effect to my VM image build times. Why I have not realized this before ;-)
1
0
2

@jarkko because it's 315K. Why would it make any difference? Or are you downloading everything with curl one you have a minimal vm setup?

1
0
0
@Netux i build about 10 VMs per day or something :-) Every time I test a single kernel patch I build a fresh VM around it. Not the size but dependencies is the optimization parameter here.
1
0
1

@jarkko ah, makes more sense. Why isn't kexec a good answer? I've never messed with it, so it's pure curiosity.

1
0
0
@Netux kexec is not isolated environment from the host system, and quite complicated to use to begin with for anything really.
1
0
1

@jarkko I always thought it was an in place upgrade by moving things in the lookup tables, kind of like erlang. Does it just put in a shim layer with the blob just passing things along?

0
0
0