Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rootfs: Support building Ubuntu rootfs #104

Merged
merged 1 commit into from
Sep 15, 2023
Merged

Conversation

chantra
Copy link
Collaborator

@chantra chantra commented Aug 26, 2023

When building rootfs, we install busybox.
In Ubuntu, this is hosted under the universe component: https://packages.ubuntu.com/focal/busybox

We can specify which component to use with debootstrap. While Debian does not have a universe component, it handles it just fine so we do not need to special case Debian vs Ubuntu.

Test Plan:

Successfully built rootfs for focal and bullseye:

sudo ./mkrootfs_debian.sh  --distro bullseye
sudo ./mkrootfs_debian.sh  --distro focal

When building rootfs, we install `busybox`.
In Ubuntu, this is hosted under the `universe` component:
https://packages.ubuntu.com/focal/busybox

We can specify which component to use with debootstrap. While Debian does not
have a universe component, it handles it just fine so we do not need to special
case Debian vs Ubuntu.

Test Plan:

Successfully built rootfs for focal and bullseye:

```
sudo ./mkrootfs_debian.sh  --distro bullseye
sudo ./mkrootfs_debian.sh  --distro focal
```

Signed-off-by: Manu Bretelle <[email protected]>
@chantra chantra merged commit f9d59b3 into libbpf:main Sep 15, 2023
2 checks passed
@chantra chantra deleted the ubuntu_rootfs branch September 15, 2023 20:45
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