Skip to content

Ubuntu mmdebstrap - #4

Merged
henrywang merged 4 commits into
mainfrom
ubuntu-mmdebstrap
May 21, 2026
Merged

henrywang merged 4 commits into
mainfrom
ubuntu-mmdebstrap

Conversation

@henrywang

Copy link
Copy Markdown
Owner

No description provided.

henrywang added 4 commits May 21, 2026 08:52
…se image

Previously the Ubuntu Containerfile installed packages into the ubuntu:26.04
container directly, so the final image inherited everything in the base image.
Now ubuntu:26.04 is used only as a build host providing mmdebstrap and dracut;
each variant is bootstrapped fresh into /rootfs with only explicitly-listed
packages, then copied FROM scratch — matching the Fedora build's approach.

Key changes:
- Add builder stage with mmdebstrap + dracut (build host only, not in output)
- One mmdebstrap call per variant; suite derived from builder's /etc/os-release
- --setup-hook writes kernel-img.conf (do_initrd=No) before package install to
  suppress update-initramfs, which is absent in minbase; dracut --sysroot builds
  the initramfs instead
- dracut --sysroot /rootfs replaces native dracut run (same as Fedora path)
- Final FROM scratch stages copy from /rootfs, not from the container root
@henrywang
henrywang merged commit 59705ba into main May 21, 2026
3 checks passed
@henrywang
henrywang deleted the ubuntu-mmdebstrap branch May 21, 2026 15:09
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.

1 participant