labwc + Noctalia Shell (Testbranch, fedora-bootc-Basis)
This commit is contained in:
@@ -124,6 +124,9 @@ _rootful_load_image $target_image $tag=default_tag:
|
||||
fi
|
||||
|
||||
# Build a bootc bootable image using Bootc Image Builder (BIB)
|
||||
# HINWEIS: Bei Typ "iso" wird die Image-Referenz im Kickstart (iso/iso.toml)
|
||||
# automatisch auf $target_image:$tag umgeschrieben. So installiert eine lokal
|
||||
# gebaute Test-ISO auch das Test-Image und nicht :stable.
|
||||
_build-bib $target_image $tag $type $config: (_rootful_load_image target_image tag)
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
@@ -134,6 +137,16 @@ _build-bib $target_image $tag $type $config: (_rootful_load_image target_image t
|
||||
|
||||
BUILDTMP=$(mktemp -p "${PWD}" -d -t _build-bib.XXXXXXXXXX)
|
||||
|
||||
CONFIG_ABS="$(pwd)/${config}"
|
||||
CONFIGTMP=""
|
||||
if [[ "${type}" == "iso" ]]; then
|
||||
CONFIGTMP=$(mktemp -p "${PWD}" -d -t _build-bib-config.XXXXXXXXXX)
|
||||
sed "s|humocs-man.duckdns.org/humocs-man/fluffy-pancake:stable|{{ target_image }}:{{ tag }}|g" \
|
||||
"${CONFIG_ABS}" > "$CONFIGTMP/config.toml"
|
||||
CONFIG_ABS="$CONFIGTMP/config.toml"
|
||||
echo "==> ISO-Kickstart zeigt auf {{ target_image }}:{{ tag }}"
|
||||
fi
|
||||
|
||||
sudo podman run \
|
||||
--rm \
|
||||
-it \
|
||||
@@ -141,7 +154,7 @@ _build-bib $target_image $tag $type $config: (_rootful_load_image target_image t
|
||||
--pull=newer \
|
||||
--net=host \
|
||||
--security-opt label=type:unconfined_t \
|
||||
-v "$(pwd)/${config}":/config.toml:ro \
|
||||
-v "${CONFIG_ABS}":/config.toml:ro \
|
||||
-v "$BUILDTMP":/output \
|
||||
-v /var/lib/containers/storage:/var/lib/containers/storage \
|
||||
"${bib_image}" \
|
||||
@@ -151,6 +164,7 @@ _build-bib $target_image $tag $type $config: (_rootful_load_image target_image t
|
||||
mkdir -p output
|
||||
sudo mv -f $BUILDTMP/* output/
|
||||
sudo rmdir $BUILDTMP
|
||||
if [[ -n "$CONFIGTMP" ]]; then rm -rf "$CONFIGTMP"; fi
|
||||
sudo chown -R $USER:$USER output/
|
||||
|
||||
# Rebuild-Schritt: Führt vor BIB ein lokales 'podman build' aus
|
||||
|
||||
Reference in New Issue
Block a user