mirror of
https://pagure.io/workstation-ostree-config.git
synced 2026-11-03 21:49:45 -09:00
justfile: Remove lorax recipe (replaced by image-builder)
See: https://fedoraproject.org/wiki/Changes/BuildAtomicDesktopsWithImageBuilder
This commit is contained in:
parent
2c59fda831
commit
1be7808c49
1 changed files with 0 additions and 95 deletions
95
justfile
95
justfile
|
|
@ -279,101 +279,6 @@ clean-repo:
|
|||
clean-cache:
|
||||
rm -rf ./cache
|
||||
|
||||
# Build an ISO
|
||||
lorax variant=default_variant:
|
||||
#!/bin/bash
|
||||
set -euxo pipefail
|
||||
|
||||
rm -rf iso
|
||||
# Do not create the iso directory or lorax will fail
|
||||
mkdir -p tmp cache/lorax
|
||||
|
||||
declare -A pretty_names={{pretty_names}}
|
||||
declare -A volume_id_substitutions={{volume_id_substitutions}}
|
||||
variant={{variant}}
|
||||
variant_pretty=${pretty_names[$variant]-}
|
||||
volid_sub=${volume_id_substitutions[$variant]-}
|
||||
if [[ -z $variant_pretty ]] || [[ -z $volid_sub ]]; then
|
||||
echo "Unknown variant"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ ! -d fedora-lorax-templates ]]; then
|
||||
git clone https://pagure.io/fedora-lorax-templates.git
|
||||
else
|
||||
pushd fedora-lorax-templates > /dev/null || exit 1
|
||||
git fetch
|
||||
git reset --hard origin/main
|
||||
popd > /dev/null || exit 1
|
||||
fi
|
||||
|
||||
version_number="$(rpm-ostree compose tree --print-only --repo=repo ${variant}.yaml | jq -r '."mutate-os-release"')"
|
||||
if [[ "$(git rev-parse --abbrev-ref HEAD)" == "main" ]] || [[ -f "fedora-rawhide.repo" ]]; then
|
||||
version_pretty="Rawhide"
|
||||
version="rawhide"
|
||||
else
|
||||
version_pretty="${version_number}"
|
||||
version="${version_number}"
|
||||
fi
|
||||
source_url="https://kojipkgs.fedoraproject.org/compose/${version}/latest-Fedora-${version_pretty}/compose/Everything/x86_64/os/"
|
||||
volid="Fedora-${volid_sub}-x86_64-${version_pretty}"
|
||||
|
||||
buildid=""
|
||||
if [[ -f ".buildid" ]]; then
|
||||
buildid="$(< .buildid)"
|
||||
else
|
||||
buildid="$(date '+%Y%m%d.0')"
|
||||
echo "${buildid}" > .buildid
|
||||
fi
|
||||
|
||||
# Stick to the latest stable runtime available here
|
||||
# Only include a subset of Flatpaks here
|
||||
# Exhaustive list in https://pagure.io/pungi-fedora/blob/main/f/fedora.conf
|
||||
# flatpak_remote_refs="runtime/org.fedoraproject.Platform/x86_64/f39"
|
||||
# flatpak_apps=(
|
||||
# "app/org.gnome.Calculator/x86_64/stable"
|
||||
# "app/org.gnome.Calendar/x86_64/stable"
|
||||
# "app/org.gnome.Extensions/x86_64/stable"
|
||||
# "app/org.gnome.TextEditor/x86_64/stable"
|
||||
# "app/org.gnome.clocks/x86_64/stable"
|
||||
# "app/org.gnome.eog/x86_64/stable"
|
||||
# )
|
||||
# for ref in ${flatpak_refs[@]}; do
|
||||
# flatpak_remote_refs+=" ${ref}"
|
||||
# done
|
||||
# FLATPAK_ARGS=""
|
||||
# FLATPAK_ARGS+=" --add-template=${pwd}/fedora-lorax-templates/ostree-based-installer/lorax-embed-flatpaks.tmpl"
|
||||
# FLATPAK_ARGS+=" --add-template-var=flatpak_remote_name=fedora"
|
||||
# FLATPAK_ARGS+=" --add-template-var=flatpak_remote_url=oci+https://registry.fedoraproject.org"
|
||||
# FLATPAK_ARGS+=" --add-template-var=flatpak_remote_refs=${flatpak_remote_refs}"
|
||||
|
||||
pwd="$(pwd)"
|
||||
|
||||
lorax \
|
||||
--product=Fedora \
|
||||
--version=${version_pretty} \
|
||||
--release=${buildid} \
|
||||
--source="${source_url}" \
|
||||
--variant="${variant_pretty}" \
|
||||
--nomacboot \
|
||||
--isfinal \
|
||||
--buildarch=x86_64 \
|
||||
--volid="${volid}" \
|
||||
--logfile=${pwd}/logs/lorax.log \
|
||||
--tmp=${pwd}/tmp \
|
||||
--cachedir=cache/lorax \
|
||||
--rootfs-size=8 \
|
||||
--add-template=${pwd}/fedora-lorax-templates/ostree-based-installer/lorax-configure-repo.tmpl \
|
||||
--add-template=${pwd}/fedora-lorax-templates/ostree-based-installer/lorax-embed-repo.tmpl \
|
||||
--add-template-var=ostree_install_repo=file://${pwd}/repo \
|
||||
--add-template-var=ostree_update_repo=file://${pwd}/repo \
|
||||
--add-template-var=ostree_osname=fedora \
|
||||
--add-template-var=ostree_oskey=fedora-${version_number}-primary \
|
||||
--add-template-var=ostree_contenturl=mirrorlist=https://ostree.fedoraproject.org/mirrorlist \
|
||||
--add-template-var=ostree_install_ref=fedora/${version}/x86_64/${variant} \
|
||||
--add-template-var=ostree_update_ref=fedora/${version}/x86_64/${variant} \
|
||||
${pwd}/iso/linux
|
||||
|
||||
# Upload a container to a registry and sign it. Used in CI
|
||||
upload-container variant=default_variant arch=default_arch:
|
||||
#!/bin/bash
|
||||
|
|
|
|||
Loading…
Reference in a new issue