Files
samios/packaging/archiso/profiledef.sh
T
Sami Ahmed 1ff4110b70
SamiOS CI / lint-and-test (push) Successful in 10s
[grade=B] SSOT: VERSION single-source-of-truth across all 7 components
- Add VERSION at repo root (canonical) + airootfs mirror
- Refactor samios CLI, voice-bridge, installer, profiledef,
  desktop-setup, PKGBUILD to derive VERSION from canonical file via
  walk-up or conditional read (no embedded release-version literals)
- Makefile targets: version-set NEW=X (single file change), version-sync
- tests/test_version.sh: 55 assertions locking the invariants

Verified end-to-end:
  make version-set NEW=0.3.0-rc2 → all 7 components see 0.3.0-rc2;
  PKGBUILD transforms hyphen to underscore for Arch.

Codex verdict: B (0 blocking issues, shippable).
2026-08-11 06:57:17 -07:00

49 lines
1.6 KiB
Bash

#!/usr/bin/env bash
# shellcheck disable=SC2034
# SamiOS archiso profile definition
# Minimal CLI-based Arch Linux with SamiOS branding
# ── Canonical version source ────────────────────────────────────────────
# Same walk-up lookup the installer and CLI use, so the ISO label and
# version always agree with what samios version prints inside the live
# system.
_iso_version=""
_d="$(cd "$(dirname "$0")" && pwd)"
while [ "$_d" != "/" ]; do
if [ -f "$_d/VERSION" ]; then
_iso_version="$(head -n1 "$_d/VERSION")"
break
fi
_d="$(dirname "$_d")"
done
[ -z "$_iso_version" ] && _iso_version="0.0.0-unknown"
unset _d
iso_name="samios"
iso_label="SAMIOS_$(date +%Y%m)"
iso_publisher="Sami Ahmed <sami@sami-ahmed.net>"
iso_application="SamiOS Live/Rescue CD"
iso_version="${_iso_version}"
unset _iso_version
install_dir="arch"
buildmodes=('iso')
bootmodes=('bios.syslinux.mbr' 'bios.syslinux.eltorito' 'uefi-x64.grub.esp' 'uefi-x64.grub.eltorito')
arch="x86_64"
pacman_conf="pacman.conf"
airootfs_image_type="squashfs"
airootfs_image_tool_options=('-comp' 'xz' '-Xbcj' 'x86' '-b' '1M' '-Xdict-size' '1M')
bootstrap_tarball_compression=('zstd' '-c' '-T0' '--ultra' '-20')
file_permissions=(
["/etc/shadow"]="0:0:400"
["/etc/gshadow"]="0:0:400"
["/root"]="0:0:750"
["/root/.automated_script.sh"]="0:0:755"
["/root/.zshrc"]="0:0:644"
["/root/.bashrc"]="0:0:644"
["/root/.gnupg"]="0:0:700"
["/usr/local/bin/choose-mirror"]="0:0:755"
["/usr/local/bin/samios"]="0:0:755"
["/etc/samios-version"]="0:0:644"
)