Skip to content

Commit 13598e3

Browse files
committed
Rebase stable on dev
1 parent 2f32bc5 commit 13598e3

27 files changed

+189
-223
lines changed

.github/workflows/build-and-push.yaml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,24 @@ jobs:
3333
REGISTRY_IMAGE: ${{ vars.registry_image }}
3434
VERSION: ${{ matrix.version }}
3535
run: |
36-
make image rechunk VERSION=${VERSION} IS_CANARY=${IS_CANARY} IS_EDGE=${IS_EDGE}
36+
make image VERSION=${VERSION} IS_CANARY=${IS_CANARY} IS_EDGE=${IS_EDGE}
3737
export TAG=$(make echo-tag VERSION=${VERSION} IS_CANARY=${IS_CANARY} IS_EDGE=${IS_EDGE})
38-
38+
3939
export IMAGE=$(make echo-image)
4040
4141
echo "TAG=${TAG}" >> $GITHUB_OUTPUT
4242
echo "IMAGE=${IMAGE}" >> $GITHUB_OUTPUT
43+
44+
- name: Run Rechunker
45+
id: rechunk
46+
uses: hhd-dev/rechunk@ca77507401f8700bb0b25ebecbbf980a078cd180 # v1.2.2
47+
with:
48+
rechunk: "ghcr.io/hhd-dev/rechunk:v1.2.2"
49+
ref: ${{ steps.build.outputs.IMAGE }}:${{ steps.build.outputs.TAG }}
50+
skip_compression: true
51+
version: ${{ steps.build.outputs.TAG }}
52+
pretty: ${{ steps.build.outputs.TAG }}
53+
revision: ${{ github.sha }}
4354

4455
- name: Login to registry
4556
env:
@@ -55,8 +66,9 @@ jobs:
5566
IS_EDGE: ${{ matrix.is_edge }}
5667
VERSION: ${{ matrix.version }}
5768
run: |
58-
# RECHUNKED_IMAGE=$(sudo podman pull ${{ steps.rechunk.outputs.ref }})
69+
RECHUNKED_IMAGE=$(sudo podman pull ${{ steps.rechunk.outputs.ref }})
5970
60-
# sudo podman image tag ${RECHUNKED_IMAGE} ${{ steps.build.outputs.IMAGE }}:${{ steps.build.outputs.TAG }}
71+
sudo podman image tag ${RECHUNKED_IMAGE} ${{ steps.build.outputs.IMAGE }}:${{ steps.build.outputs.TAG }}
6172
6273
make push VERSION=${VERSION} IS_CANARY=${IS_CANARY} IS_EDGE=${IS_EDGE}
74+

.github/workflows/build-iso.yaml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ on:
44
workflow_dispatch:
55
inputs:
66
version:
7-
description: "HeliumOS version to build"
7+
description: 'HeliumOS version to build'
88
required: true
99
type: string
10-
default: "10"
10+
default: '10'
1111
arch:
12-
description: "CPU Architecture"
12+
description: 'CPU Architecture'
1313
required: true
1414
type: string
15-
default: "x86_64"
15+
default: 'x86_64'
1616

1717
jobs:
1818
build_iso:
@@ -21,14 +21,6 @@ jobs:
2121
- name: Checkout repository
2222
uses: actions/checkout@v4
2323

24-
- name: Remove environment bloat
25-
run: |
26-
sudo rm -rf \
27-
/usr/share/dotnet \
28-
/usr/local/lib/android \
29-
/opt/ghc \
30-
/opt/hostedtoolcache/CodeQL
31-
3224
- name: Install dependencies
3325
run: |
3426
sudo apt-get update
@@ -47,4 +39,4 @@ jobs:
4739
uses: actions/upload-artifact@v4
4840
with:
4941
path: out/HeliumOS*.iso
50-
retention-days: 7
42+
retention-days: 7

Makefile

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,15 @@ echo-tag:
2929

3030
image:
3131
$(PODMAN) build \
32-
--build-arg BASE=quay.io/almalinuxorg/almalinux-bootc:$(VERSION) \
32+
--build-arg BASE=quay.io/almalinuxorg/almalinux-bootc:$(VERSION)-kitten \
3333
--build-arg PLAYBOOK=$(PLAYBOOK).yaml \
3434
--network host \
3535
-f Containerfile \
3636
-t $(IMAGE):$(TAG) \
3737
.
3838

3939
rechunk:
40-
$(PODMAN) run \
41-
--rm \
42-
--privileged \
43-
-v /var/lib/containers:/var/lib/containers \
44-
quay.io/almalinuxorg/almalinux-bootc:$(VERSION) \
45-
/usr/libexec/bootc-base-imagectl rechunk \
46-
$(IMAGE):$(TAG) \
47-
$(IMAGE):$(TAG)
40+
$(SUDO) IMAGE=$(IMAGE):$(TAG) ./rechunk.sh
4841

4942
push:
5043
$(PODMAN) push \
@@ -57,17 +50,16 @@ iso:
5750
cp \
5851
./iso/config.toml \
5952
./out/config.toml
60-
6153
sed -i \
6254
"s,<URL>,$(IMAGE):$(TAG),g" \
6355
./out/config.toml
6456

65-
$(PODMAN) pull $(IMAGE):$(TAG)
57+
$(PODMAN) pull \
58+
$(IMAGE):$(TAG)
6659

6760
$(PODMAN) run \
6861
--rm \
6962
-it \
70-
--net host \
7163
--privileged \
7264
--pull=newer \
7365
--security-opt label=type:unconfined_t \
@@ -79,18 +71,14 @@ iso:
7971
--use-librepo=False \
8072
$(IMAGE):$(TAG)
8173

82-
sudo mv \
83-
./out/bootiso/install.iso \
84-
./out/upstream.iso
85-
8674
$(PODMAN) run \
8775
--rm \
8876
-it \
8977
--pull=newer \
9078
--privileged \
9179
-v ./out:/output \
9280
-v ./iso:/iso \
93-
quay.io/almalinuxorg/almalinux:10.1 \
81+
quay.io/almalinuxorg/almalinux:10-kitten \
9482
bash -c '\
9583
dnf install -y lorax \
9684
&& rm -rf /images && mkdir /images \
@@ -100,5 +88,5 @@ iso:
10088
--add /images \
10189
--volid heliumos-${VERSION}-boot \
10290
--replace "vmlinuz" "vmlinuz inst.resolution=1280x800" \
103-
/output/upstream.iso \
91+
/output/bootiso/install.iso \
10492
/output/HeliumOS-${VERSION}-${ARCH}-boot.iso'

files/branding.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ rm -rf \
1616

1717
sed -i 's,AlmaLinux,HeliumOS,g' \
1818
/usr/lib/os-release
19-
sed -i 's,10.1,10,g' \
20-
/usr/lib/os-release
21-
sed -i 's, (Heliotrope Lion),,g' \
19+
sed -i 's, (Purple Lion),,g' \
2220
/usr/lib/os-release
2321
sed -i 's,ID="almalinux",ID="heliumos",g' \
2422
/usr/lib/os-release
@@ -36,6 +34,8 @@ sed -i 's,AlmaLinux,HeliumOS,g' \
3634
/usr/lib/os-release
3735
sed -i 's,https://bugs.almalinux.org/,https://bugs.heliumos.org/,g' \
3836
/usr/lib/os-release
37+
sed -i 's, Kitten,,g' \
38+
/usr/lib/os-release
3939
sed -i 's, (Lion Cub),,g' \
4040
/usr/lib/os-release
4141

files/etc/plymouth/plymouthd.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[Daemon]
2+
Theme=spinner
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
force_drivers+=" nvidia nvidia_modeset nvidia_uvm nvidia_drm "
2-
dracutmodules+=" plymouth "
1+
dracutmodules+=" plymouth "
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<zone>
3+
<short>HeliumOS</short>
4+
<description>Unsolicited incoming network packets are rejected from port 1 to 1024, except for select network services. Incoming packets that are related to outgoing network connections are accepted. Outgoing network connections are allowed.</description>
5+
<service name="dhcpv6-client"/>
6+
<service name="ssh"/>
7+
<service name="samba-client"/>
8+
<port protocol="udp" port="1025-65535"/>
9+
<port protocol="tcp" port="1025-65535"/>
10+
<forward/>
11+
</zone>

iso/config.ks

Lines changed: 0 additions & 21 deletions
This file was deleted.

iso/config.toml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,17 @@ autopart --type=btrfs --nohome
55
zerombr
66
clearpart --none --initlabel
77
8-
network --hostname heliumos --bootproto=dhcp --device=link --activate
8+
network --bootproto=dhcp --device=link --activate
99
1010
rootpw --lock
1111
timezone America/Chicago
1212
13-
%addon com_redhat_kdump --disable
14-
%end
15-
1613
%post
1714
1815
bootc switch --mutate-in-place --transport registry <URL>
19-
2016
rm -f /var/lib/systemd/random-seed
2117
2218
%end
23-
2419
"""
2520

2621
[customizations.installer.modules]

iso/product/.buildstamp

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)