virtme icon indicating copy to clipboard operation
virtme copied to clipboard

Support for dynamically-linked busybox

Open zevweiss opened this issue 9 years ago • 4 comments

I understand if this is a bit "controversial" (i.e. not wanted); it's definitely a bit of a hack, but it does let virtme work in some situations where it currently doesn't.

zevweiss avatar Mar 22 '17 16:03 zevweiss

There were some other fixes recently to help find a static busybox. Is this still needed?

amluto avatar Nov 25 '17 14:11 amluto

"Needed" might be a bit strong; still potentially useful in some cases though. I'm not aware offhand of any distros that don't package a static build of busybox, though as seen in commit c39a1cd18f they may be under different names (e.g. on my current system it's /usr/bin/busybox.static -- note the . instead of -). We could just add another entry to the hard-coded list in find_busybox(), but trying to accommodate dynamically-linked builds might make it slightly more likely to "just work" on arbitrary/unknown other systems -- though as previously noted, the patch isn't entirely a thing of beauty, so if you'd prefer the former I wouldn't particularly mind.

zevweiss avatar Nov 25 '17 20:11 zevweiss

Ping...any further thoughts on this?

zevweiss avatar Sep 17 '19 06:09 zevweiss

Just noticed this, after having implemented an equivalent variant of this but using pyelftools instead of parsing ldd: https://github.com/amluto/virtme/pull/77

jadahl avatar Aug 17 '22 23:08 jadahl