Menu
BifrOSt
publicLatest change 9cfe2016fbf1878ce207be2c8033c38d11ec899e - Release BifrOSt 0.2.0 by Ólafur Búi Ólafsson
#!/usr/bin/env bash
# shellcheck disable=SC2034
bifrost_version="0.2.0"
source_date_epoch="${SOURCE_DATE_EPOCH:-0}"
if [[ ! "${source_date_epoch}" =~ ^[0-9]+$ ]]; then
printf 'profiledef.sh: SOURCE_DATE_EPOCH must be a non-negative integer\n' >&2
return 1
fi
if ! iso_build_date="$(date -u --date="@${source_date_epoch}" +%Y%m%d)"; then
printf 'profiledef.sh: SOURCE_DATE_EPOCH is outside the supported date range\n' >&2
return 1
fi
if [[ ! "${iso_build_date}" =~ ^[0-9]{8}$ ]]; then
printf 'profiledef.sh: SOURCE_DATE_EPOCH must resolve to a four-digit year\n' >&2
return 1
fi
iso_version_token="${bifrost_version^^}"
iso_version_token="${iso_version_token//[^A-Z0-9]/}"
iso_name="bifrost"
iso_label="BIFROST_${iso_version_token:0:12}_${iso_build_date}"
iso_publisher="BifrOSt project"
iso_application="BifrOSt Icelandic developer live/install ISO"
iso_version="${bifrost_version}"
install_dir="bifrost"
buildmodes=('iso')
bootmodes=('bios.syslinux'
'uefi.systemd-boot')
pacman_conf="pacman.conf"
airootfs_image_type="squashfs"
airootfs_image_tool_options=('-comp' 'xz' '-Xbcj' 'x86' '-b' '1M' '-Xdict-size' '1M' '-processors' '4')
bootstrap_tarball_compression=('zstd' '-c' '-T0' '--auto-threads=logical' '--long' '-19')
file_permissions=(
["/etc/shadow"]="0:0:400"
["/etc/sudoers.d/liveuser"]="0:0:440"
["/root"]="0:0:750"
["/root/.automated_script.sh"]="0:0:755"
["/root/.gnupg"]="0:0:700"
["/usr/local/bin/choose-mirror"]="0:0:755"
["/usr/local/bin/Installation_guide"]="0:0:755"
["/usr/local/bin/livecd-sound"]="0:0:755"
["/usr/local/bin/bifrost-installer"]="0:0:755"
["/usr/local/lib/bifrost-installer-backend"]="0:0:755"
["/usr/local/bin/apply-bifrost-live-branding"]="0:0:755"
)