Publish Tesseract distribution identity and support OSTree-only builds (D-098)
This commit is contained in:
parent
bf53315d34
commit
6f65019dbb
2 changed files with 12 additions and 2 deletions
|
|
@ -4,6 +4,8 @@ work=$(realpath -m "$1")
|
|||
archive=$(realpath "$2")
|
||||
binary=$(realpath "$3")
|
||||
profile=${4:-core}
|
||||
output_kind=${ARCHIPELAGO_BUILD_OUTPUT:-iso}
|
||||
[[ $output_kind == iso || $output_kind == ostree ]] || { echo 'Invalid build output' >&2; exit 1; }
|
||||
[[ $profile == core || $profile == gnome-probe ]]
|
||||
core_bind=()
|
||||
if [[ $profile == gnome-probe ]]; then
|
||||
|
|
@ -13,6 +15,7 @@ if [[ $profile == gnome-probe ]]; then
|
|||
fi
|
||||
[[ $work != / && $work != /usr && $work != /var && $work != *:* && $work != *','* ]]
|
||||
mkdir -p "$work"
|
||||
printf '%s\n' "$output_kind" > "$work/build-output"
|
||||
exec 9>"$work/build.lock"
|
||||
flock -n 9
|
||||
outer="$work"
|
||||
|
|
@ -245,6 +248,11 @@ printf '%s\n' "$snapshot" > /job/overlay/metadata/snapshot
|
|||
ostree --repo=/job/repo commit -b test-marker --tree=dir=/job/overlay --add-metadata-string=archipelago.snapshot="$snapshot"
|
||||
fi
|
||||
# Minimal UEFI archiso profile based on packaged releng boot integration.
|
||||
if [[ $(cat /job/build-output) == ostree ]]; then
|
||||
cp -a /job/package-repo /job/output/packages
|
||||
printf 'OSTree image and layers ready; ISO packaging not requested\n'
|
||||
exit 0
|
||||
fi
|
||||
cp -a /usr/share/archiso/configs/releng /job/profile
|
||||
cat > /job/profile/profiledef.sh <<'EOF'
|
||||
iso_name="archipelago-core"
|
||||
|
|
|
|||
|
|
@ -65,8 +65,10 @@ cat > "$pkg/runtime/usr/lib/archipelago/defaults/os-release" <<'EOF'
|
|||
NAME="Archipelago Core"
|
||||
ID=archipelago
|
||||
ID_LIKE=arch
|
||||
PRETTY_NAME="Archipelago Core Experimental"
|
||||
VERSION_ID=0.0.0
|
||||
PRETTY_NAME="Archipelago Core Tesseract"
|
||||
VERSION="Tesseract"
|
||||
VERSION_ID=Tesseract
|
||||
VERSION_CODENAME=tesseract
|
||||
EOF
|
||||
printf 'LANG=C.UTF-8\n' > "$pkg/runtime/usr/lib/archipelago/defaults/locale.conf"
|
||||
printf 'KEYMAP=us\n' > "$pkg/runtime/usr/lib/archipelago/defaults/vconsole.conf"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue