chore: clean up the repo even more

Signed-off-by: Tulip Blossom <tulilirockz@proton.me>
This commit is contained in:
Tulip Blossom
2025-08-24 18:35:35 -03:00
parent c7d335e187
commit 4d89afe729
5 changed files with 21 additions and 12 deletions
+4 -4
View File
@@ -1,7 +1,6 @@
FROM scratch AS ctx FROM scratch AS ctx
COPY files /files COPY build.sh /build.sh
COPY build-scripts /build-scripts
FROM quay.io/centos-bootc/centos-bootc:c10s FROM quay.io/centos-bootc/centos-bootc:c10s
@@ -9,6 +8,7 @@ RUN --mount=type=tmpfs,dst=/var \
--mount=type=tmpfs,dst=/tmp \ --mount=type=tmpfs,dst=/tmp \
--mount=type=tmpfs,dst=/boot \ --mount=type=tmpfs,dst=/boot \
--mount=type=tmpfs,dst=/run \ --mount=type=tmpfs,dst=/run \
--mount=type=bind,from=ctx,source=/build-scripts,dst=/tmp/build-scripts \ --mount=type=bind,from=ctx,source=/,dst=/tmp/build-scripts \
--mount=type=bind,from=ctx,source=/files,dst=/tmp/files \
/tmp/build-scripts/build.sh /tmp/build-scripts/build.sh
RUN bootc container lint --fatal-warnings
+10 -4
View File
@@ -1,16 +1,22 @@
iso: image := env("IMAGE_FULL", "ghcr.io/tulilirockz/taxifolia:latest")
iso $image=image:
#!/usr/bin/env bash
mkdir -p output mkdir -p output
sudo podman pull ghcr.io/tulilirockz/fiskar:latest IMAGE_CONFIG="$(mktemp)"
export IMAGE_FULL="${image}"
envsubst < ./config.toml > "${IMAGE_CONFIG}"
sudo podman pull "${image}"
sudo podman run \ sudo podman run \
--rm \ --rm \
-it \ -it \
--privileged \ --privileged \
--pull=newer \ --pull=newer \
--security-opt label=type:unconfined_t \ --security-opt label=type:unconfined_t \
-v ./config.toml:/config.toml:ro \ -v "${IMAGE_CONFIG}:/config.toml:ro" \
-v ./output:/output \ -v ./output:/output \
-v /var/lib/containers/storage:/var/lib/containers/storage \ -v /var/lib/containers/storage:/var/lib/containers/storage \
quay.io/centos-bootc/bootc-image-builder:latest \ quay.io/centos-bootc/bootc-image-builder:latest \
--type iso \ --type iso \
--use-librepo=True \ --use-librepo=True \
ghcr.io/tulilirockz/fiskar:latest "${image}"
+6 -1
View File
@@ -3,6 +3,8 @@
set -xeuo pipefail set -xeuo pipefail
systemctl enable sshd systemctl enable sshd
systemctl enable podman-auto-update.timer
systemctl enable --global podman-auto-update.timer
dnf -y remove \ dnf -y remove \
adcli \ adcli \
@@ -51,7 +53,10 @@ dnf -y install epel-release
dnf config-manager --set-disabled epel dnf config-manager --set-disabled epel
dnf -y install --enablerepo="epel" just dnf -y install --enablerepo="epel" just
install -Dpm0644 -t /usr/lib/systemd /tmp/files/usr/lib/systemd/zram-generator.conf tee /usr/lib/systemd/zram-generator.conf <<EOF
[zram0]
zram-size = min(ram, 8192)
EOF
sed -i 's|^ExecStart=.*|ExecStart=/usr/bin/bootc update --quiet|' /usr/lib/systemd/system/bootc-fetch-apply-updates.service sed -i 's|^ExecStart=.*|ExecStart=/usr/bin/bootc update --quiet|' /usr/lib/systemd/system/bootc-fetch-apply-updates.service
sed -i 's|^OnUnitInactiveSec=.*|OnUnitInactiveSec=7d\nPersistent=true|' /usr/lib/systemd/system/bootc-fetch-apply-updates.timer sed -i 's|^OnUnitInactiveSec=.*|OnUnitInactiveSec=7d\nPersistent=true|' /usr/lib/systemd/system/bootc-fetch-apply-updates.timer
+1 -1
View File
@@ -1,7 +1,7 @@
[customizations.installer.kickstart] [customizations.installer.kickstart]
contents = """ contents = """
%post %post
bootc switch --mutate-in-place --transport registry ghcr.io/tulilirockz/taxifolia:latest bootc switch --mutate-in-place --transport registry $IMAGE_FULL
%end %end
""" """
@@ -1,2 +0,0 @@
[zram0]
zram-size = min(ram, 8192)