Skip to content

Ubuntu rootfs Downloader#646

Open
KendallHarterAtWork wants to merge 6 commits into
mainfrom
elf-rootfs-download
Open

Ubuntu rootfs Downloader#646
KendallHarterAtWork wants to merge 6 commits into
mainfrom
elf-rootfs-download

Conversation

@KendallHarterAtWork

Copy link
Copy Markdown
Collaborator

Summary

If merged this pull request will add a plugin that automatically downloads and extracts rootfs files from Ubuntu for ELF files based on the architecture.

Comment thread plugins/rootfsdownloader/pyproject.toml Outdated
build-backend = "setuptools.build_meta"

[project]
name = "surfactantplugin-rootfsdownloader"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's just call the plugin rootfsmanager (+ rename folder/files/README description) to match the class name used. Thinking about how this could be used, I'd also be inclined to remove the surfactantplugin- prefix from the name; I could imagine there being some interest in using it outside of surfactant.

@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown

✅ No SBOM Changes Detected

For commit 3c5001e (Run 28956768548)
Compared against commit 94e966e (Run 28537759591)

@nightlark

Copy link
Copy Markdown
Collaborator

Some notes on other places we can acquire a rootfs from:

  • Alpine (musl) "equivalent" of Ubuntu oci: https://dl-cdn.alpinelinux.org/alpine/ has minirootfs tar files under paths like https://dl-cdn.alpinelinux.org/alpine/v3.<x>/releases/<arch>/alpine-minirootfs-<ver>-<arch>.tar.gz
  • Void Linux publishes rootfs images for musl and glibc at https://repo-default.voidlinux.org/live/current/, unlike alpine which uses busybox, void linux is maybe more similar in their userspace binaries to a desktop distro like debian
  • https://images.linuxcontainers.org has rootfs images for a variety of distros (not particularly minimal like some of the ones aimed at using for OCI container images)
  • https://github.com/debuerreotype/docker-debian-artifacts has some rootfs things from Debian
  • Arch Linux publishes a bootstrap tarball and has instructions for creating a chroot from it https://wiki.archlinux.org/title/Install_Arch_Linux_from_existing_Linux
  • Dumping from any Docker container: podman create --name tmp alpine:3.21 && podman export tmp | gzip > alpine-rootfs.tar.gz
  • Docker images for openwrt rootfs? https://github.com/openwrt/docker-openwrt/pkgs/container/rootfs (sorta getting into embedded Linux filesystems... reminds me that eventually support should be added to recognize what OS a filesystem dump is using e.g. /etc/os-release files and package manager metadata files)

Comment thread plugins/rootfsmanager/pyproject.toml Outdated
Remove `surfactantplugin-` prefix

Co-authored-by: Ryan Mast <3969255+nightlark@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants