#!/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 " 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" )