1
0
mirror of https://github.com/home-assistant/operating-system.git synced 2026-07-12 17:26:32 +01:00
Files
operating-system/buildroot-external/scripts/post-build.sh
T
Jan Čermák 5511610ae4 Harmonize hassos/HassOS naming to haos across the tree (#4740)
* Harmonize systemd unit and helper-script prefixes to haos (#4725)

Rename the hassos-prefixed systemd units and their ExecStart helper
binaries to a consistent haos- prefix, and update all in-repo
references. Normalize the affected unit Description= strings as well.

Units renamed in this commit are not referred externally (except for
syslog identifiers used in Supervisor Host logs), so no other changes
should be needed.

* Rename hassos-config to haos-config with alias

Rename the hassos-config.service unit and its binary to the haos-
prefix. This unit is restarted by Supervisor in os/manager.py, so add
Alias= to avoid the need to try both variants there.

* Rename hassos-cli binary to haos-cli

* Change HassOS to HAOS in unit descriptions and comments

* Rename hassos->haos in Buildroot makefiles, scripts and configs

* Rename bootargs_hassos to bootargs_haos in U-Boot scripts

* Rename external Buildroot tree HASSOS to HAOS

Set external.desc name to HAOS and rename all BR2_EXTERNAL_HASSOS_PATH
references to BR2_EXTERNAL_HAOS_PATH accordingly.

* Rename hassos.conf service drop-ins to haos.conf

* Rename hassos.config kernel fragment to haos.config

* Rename hassos-blobs repo in package/bluetooth-rtl8723

The repo was renamed somewhere in the past and it now relies on an
internal GitHub redirect. Change the URL to match the new repo name.
2026-06-01 23:25:43 +02:00

53 lines
1.3 KiB
Bash
Executable File

#!/bin/bash
# shellcheck disable=SC1090,SC1091
set -e
SCRIPT_DIR=${BR2_EXTERNAL_HAOS_PATH}/scripts
BOARD_DIR=${2}
. "${BR2_EXTERNAL_HAOS_PATH}/meta"
. "${BOARD_DIR}/meta"
. "${SCRIPT_DIR}/rootfs-layer.sh"
. "${SCRIPT_DIR}/name.sh"
. "${SCRIPT_DIR}/rauc.sh"
# HAOS tasks
fix_rootfs
install_tini_docker
setup_localtime
setup_vconsole
# Write os-release
# shellcheck disable=SC2153
(
echo "NAME=\"${HAOS_NAME}\""
echo "VERSION=\"$(haos_version) (${BOARD_NAME})\""
echo "ID=${HAOS_ID}"
echo "VERSION_ID=$(haos_version)"
echo "PRETTY_NAME=\"${HAOS_NAME} $(haos_version)\""
echo "CPE_NAME=cpe:2.3:o:home-assistant:${HAOS_ID}:$(haos_version):*:${DEPLOYMENT}:*:*:*:${BOARD_ID}:*"
echo "HOME_URL=https://www.home-assistant.io/"
echo "VARIANT=\"${HAOS_NAME} ${BOARD_NAME}\""
echo "VARIANT_ID=${BOARD_ID}"
echo "SUPERVISOR_MACHINE=${SUPERVISOR_MACHINE}"
echo "SUPERVISOR_ARCH=${SUPERVISOR_ARCH}"
) > "${TARGET_DIR}/usr/lib/os-release"
# Write machine-info
(
echo "CHASSIS=${CHASSIS}"
echo "DEPLOYMENT=${DEPLOYMENT}"
) > "${TARGET_DIR}/etc/machine-info"
# Setup RAUC
prepare_rauc_signing
write_rauc_config
install_rauc_certs
install_bootloader_config
# Fix overlay presets
"${HOST_DIR}/bin/systemctl" --root="${TARGET_DIR}" preset-all