Skip to content

Commit

Permalink
rootfs: Support building Ubuntu rootfs
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
chantra committed Aug 26, 2023
1 parent 5b0b421 commit 790934b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rootfs/mkrootfs_debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ packages=$(IFS=, && echo "${packages[*]}")

# Stage 1
debootstrap --include="$packages" \
--components=main,universe \
--foreign \
--variant=minbase \
--arch="${deb_arch}" \
Expand Down

0 comments on commit 790934b

Please sign in to comment.