From f9d59b31b22eaf0c883126ce8a9c12c3b02e74fb Mon Sep 17 00:00:00 2001 From: Manu Bretelle Date: Sat, 26 Aug 2023 00:51:15 +0000 Subject: [PATCH] rootfs: Support building Ubuntu rootfs 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 --- rootfs/mkrootfs_debian.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/rootfs/mkrootfs_debian.sh b/rootfs/mkrootfs_debian.sh index 4b5d1ea..dfe957e 100755 --- a/rootfs/mkrootfs_debian.sh +++ b/rootfs/mkrootfs_debian.sh @@ -156,6 +156,7 @@ packages=$(IFS=, && echo "${packages[*]}") # Stage 1 debootstrap --include="$packages" \ + --components=main,universe \ --foreign \ --variant=minbase \ --arch="${deb_arch}" \