Skip to content

Commit e0015e8

Browse files
authored
Merge pull request #2 from henrywang/ubuntu-uki
fix: rename systemd-boot-unsigned → systemd-boot-efi for Ubuntu 26.04 and publish Ubuntu images
2 parents 09c20b9 + 1431e82 commit e0015e8

3 files changed

Lines changed: 44 additions & 6 deletions

File tree

.github/workflows/container.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,36 @@ jobs:
5959
tags: ghcr.io/${{ github.repository_owner }}/composefs-os:fedora-44-uki-sb
6060
cache-from: type=gha
6161
cache-to: type=gha,mode=max
62+
63+
- name: Build and push composefs-os:ubuntu-26.04 (GRUB)
64+
uses: docker/build-push-action@v6
65+
with:
66+
context: .
67+
file: Containerfile.ubuntu
68+
target: grub
69+
push: true
70+
tags: ghcr.io/${{ github.repository_owner }}/composefs-os:ubuntu-26.04
71+
cache-from: type=gha,scope=ubuntu
72+
cache-to: type=gha,mode=max,scope=ubuntu
73+
74+
- name: Build and push composefs-os:ubuntu-26.04-uki (systemd-boot + UKI)
75+
uses: docker/build-push-action@v6
76+
with:
77+
context: .
78+
file: Containerfile.ubuntu
79+
target: uki
80+
push: true
81+
tags: ghcr.io/${{ github.repository_owner }}/composefs-os:ubuntu-26.04-uki
82+
cache-from: type=gha,scope=ubuntu
83+
cache-to: type=gha,mode=max,scope=ubuntu
84+
85+
- name: Build and push composefs-os:ubuntu-26.04-uki-sb (systemd-boot + UKI + Secure Boot)
86+
uses: docker/build-push-action@v6
87+
with:
88+
context: .
89+
file: Containerfile.ubuntu
90+
target: uki-secureboot
91+
push: true
92+
tags: ghcr.io/${{ github.repository_owner }}/composefs-os:ubuntu-26.04-uki-sb
93+
cache-from: type=gha,scope=ubuntu
94+
cache-to: type=gha,mode=max,scope=ubuntu

Containerfile.ubuntu

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ RUN mkdir -p /usr/share/efi/EFI/ubuntu && \
7474
FROM rootfs-base AS rootfs-uki
7575

7676
RUN apt-get update && apt-get install -y --no-install-recommends \
77-
systemd-boot-unsigned \
77+
systemd-boot-efi \
7878
systemd-ukify \
7979
&& rm -rf /var/lib/apt/lists/*
8080

@@ -84,9 +84,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
8484
FROM rootfs-base AS rootfs-uki-sb
8585

8686
RUN apt-get update && apt-get install -y --no-install-recommends \
87-
systemd-boot-unsigned \
87+
systemd-boot-efi \
8888
systemd-ukify \
89-
sbsigntools \
89+
sbsigntool \
9090
openssl \
9191
&& rm -rf /var/lib/apt/lists/*
9292

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ See [DESIGN.md](DESIGN.md) for rationale and architecture.
2424
| `ghcr.io/henrywang/composefs-os:fedora-44` | GRUB (BLS Type 1) | Working |
2525
| `ghcr.io/henrywang/composefs-os:fedora-44-uki` | systemd-boot + UKI (BLS Type 2) | Working |
2626
| `ghcr.io/henrywang/composefs-os:fedora-44-uki-sb` | systemd-boot + UKI + Secure Boot | Working |
27-
| Ubuntu 26.04 (build locally with `Containerfile.ubuntu`) | GRUB, UKI, UKI + Secure Boot | Working |
27+
| `ghcr.io/henrywang/composefs-os:ubuntu-26.04` | GRUB (BLS Type 1) | Working |
28+
| `ghcr.io/henrywang/composefs-os:ubuntu-26.04-uki` | systemd-boot + UKI (BLS Type 2) | Working |
29+
| `ghcr.io/henrywang/composefs-os:ubuntu-26.04-uki-sb` | systemd-boot + UKI + Secure Boot | Working |
2830
| Arch Linux || Planned |
2931

3032

@@ -149,11 +151,14 @@ The published base images are a starting point. Add your own packages and
149151
configuration in a derived `Containerfile`:
150152

151153
```dockerfile
154+
# Fedora
152155
FROM ghcr.io/henrywang/composefs-os:fedora-44
153-
154-
# Add packages
155156
RUN dnf install -y vim htop && dnf clean all
156157

158+
# Ubuntu
159+
FROM ghcr.io/henrywang/composefs-os:ubuntu-26.04
160+
RUN apt-get install -y vim htop && apt-get clean
161+
157162
# Use COPY (not RUN echo) for /etc/hostname: buildah bind-mounts a synthetic
158163
# /etc/hostname into every RUN container, so writes via RUN are silently lost.
159164
COPY <<EOF /etc/hostname

0 commit comments

Comments
 (0)