Create script that collects all binaries and their libraries and their libraries #182

Closed
opened 2021-11-20 15:20:55 +00:00 by ungleich-gitea · 4 comments

Created by: telmich

Given a list of binaries, retrieve all shared libraries and depending shared libraries.

Example:

[18:22] freiheit:~% ldd /usr/bin/ls
linux-vdso.so.1 (0x00007fffcd1c4000)
libcap.so.2 => /usr/lib/libcap.so.2 (0x00007fb0a9aaf000)
libacl.so.1 => /usr/lib/libacl.so.1 (0x00007fb0a98a6000)
libc.so.6 => /usr/lib/libc.so.6 (0x00007fb0a9503000)
libattr.so.1 => /usr/lib/libattr.so.1 (0x00007fb0a92fe000)
/lib64/ld-linux-x86-64.so.2 (0x00007fb0a9cb3000)

-> grab all libraries + verify at the end that all binaries have their requirements

*Created by: telmich* Given a list of binaries, retrieve all shared libraries and depending shared libraries. Example: [18:22] freiheit:~% ldd /usr/bin/ls linux-vdso.so.1 (0x00007fffcd1c4000) libcap.so.2 => /usr/lib/libcap.so.2 (0x00007fb0a9aaf000) libacl.so.1 => /usr/lib/libacl.so.1 (0x00007fb0a98a6000) libc.so.6 => /usr/lib/libc.so.6 (0x00007fb0a9503000) libattr.so.1 => /usr/lib/libattr.so.1 (0x00007fb0a92fe000) /lib64/ld-linux-x86-64.so.2 (0x00007fb0a9cb3000) -> grab all libraries + verify at the end that all binaries have their requirements
ungleich-gitea added the
Stale
label 2021-11-20 15:20:55 +00:00
Author
Owner

closed

closed
Author
Owner

Created by: telmich

... and btw, thanks for asking!

*Created by: telmich* ... and btw, thanks for asking!
Author
Owner

Created by: telmich

This is part of the PreOS rewrite - instead of using debootstrap to create an operating system to allow cdist to INSTALL machines, we use the binaries found on the host system and package them into either PXE or ISO format.

*Created by: telmich* This is part of the PreOS rewrite - instead of using debootstrap to create an operating system to allow cdist to INSTALL machines, we use the binaries found on the host system and package them into either PXE or ISO format.
Author
Owner

Created by: jdguffey

What is the particular use case for this?

Sorry -- I just saw this come through, but don't really know what prompted it or what the larger goal is. What are you wanting to accomplish?

*Created by: jdguffey* What is the particular use case for this? Sorry -- I just saw this come through, but don't really know what prompted it or what the larger goal is. What are you wanting to accomplish?
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ungleich-public/cdist#182
No description provided.