forked from gh-mirrored/hallstatt
chore: clean up the repo even more
Signed-off-by: Tulip Blossom <tulilirockz@proton.me>
This commit is contained in:
+4
-4
@@ -1,7 +1,6 @@
|
||||
FROM scratch AS ctx
|
||||
|
||||
COPY files /files
|
||||
COPY build-scripts /build-scripts
|
||||
COPY build.sh /build.sh
|
||||
|
||||
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=/boot \
|
||||
--mount=type=tmpfs,dst=/run \
|
||||
--mount=type=bind,from=ctx,source=/build-scripts,dst=/tmp/build-scripts \
|
||||
--mount=type=bind,from=ctx,source=/files,dst=/tmp/files \
|
||||
--mount=type=bind,from=ctx,source=/,dst=/tmp/build-scripts \
|
||||
/tmp/build-scripts/build.sh
|
||||
|
||||
RUN bootc container lint --fatal-warnings
|
||||
|
||||
@@ -1,16 +1,22 @@
|
||||
iso:
|
||||
image := env("IMAGE_FULL", "ghcr.io/tulilirockz/taxifolia:latest")
|
||||
|
||||
iso $image=image:
|
||||
#!/usr/bin/env bash
|
||||
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 \
|
||||
--rm \
|
||||
-it \
|
||||
--privileged \
|
||||
--pull=newer \
|
||||
--security-opt label=type:unconfined_t \
|
||||
-v ./config.toml:/config.toml:ro \
|
||||
-v "${IMAGE_CONFIG}:/config.toml:ro" \
|
||||
-v ./output:/output \
|
||||
-v /var/lib/containers/storage:/var/lib/containers/storage \
|
||||
quay.io/centos-bootc/bootc-image-builder:latest \
|
||||
--type iso \
|
||||
--use-librepo=True \
|
||||
ghcr.io/tulilirockz/fiskar:latest
|
||||
"${image}"
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
set -xeuo pipefail
|
||||
|
||||
systemctl enable sshd
|
||||
systemctl enable podman-auto-update.timer
|
||||
systemctl enable --global podman-auto-update.timer
|
||||
|
||||
dnf -y remove \
|
||||
adcli \
|
||||
@@ -51,7 +53,10 @@ dnf -y install epel-release
|
||||
dnf config-manager --set-disabled epel
|
||||
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|^OnUnitInactiveSec=.*|OnUnitInactiveSec=7d\nPersistent=true|' /usr/lib/systemd/system/bootc-fetch-apply-updates.timer
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
[customizations.installer.kickstart]
|
||||
contents = """
|
||||
%post
|
||||
bootc switch --mutate-in-place --transport registry ghcr.io/tulilirockz/taxifolia:latest
|
||||
bootc switch --mutate-in-place --transport registry $IMAGE_FULL
|
||||
%end
|
||||
"""
|
||||
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
[zram0]
|
||||
zram-size = min(ram, 8192)
|
||||
Reference in New Issue
Block a user