mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-12-24 20:35:31 +00:00
* Use Genimage for declarative image layout instead of s[fg]disk and dd * Change partition type to hybrid for M1, M1S and Green This is what it really is, so just make sure only one "fix" function is called. * Change efi BOOT_SYS to gpt There is no reason to have separate efi and boot sys, since all boards that use efi also use grub as the loader. * Change BOOT_SYS to more explanatory PARTITION_TABLE_TYPE * Add units to DISK_SIZE * Add forced-primary patch and use it in MBR images * Avoid disabling SC2155, remove old comments
30 lines
520 B
Bash
Executable File
30 lines
520 B
Bash
Executable File
#!/bin/bash
|
|
# shellcheck disable=SC1090,SC1091
|
|
set -e
|
|
|
|
SCRIPT_DIR=${BR2_EXTERNAL_HASSOS_PATH}/scripts
|
|
BOARD_DIR=${2}
|
|
HOOK_FILE=${3}
|
|
|
|
. "${BR2_EXTERNAL_HASSOS_PATH}/meta"
|
|
. "${BOARD_DIR}/meta"
|
|
|
|
. "${SCRIPT_DIR}/hdd-image.sh"
|
|
. "${SCRIPT_DIR}/rootfs-layer.sh"
|
|
. "${SCRIPT_DIR}/name.sh"
|
|
. "${SCRIPT_DIR}/rauc.sh"
|
|
. "${HOOK_FILE}"
|
|
|
|
# Cleanup
|
|
rm -rf "$(path_boot_dir)"
|
|
mkdir -p "$(path_boot_dir)"
|
|
|
|
# Hook pre image build stuff
|
|
hassos_pre_image
|
|
|
|
# Disk & OTA
|
|
create_disk_image
|
|
|
|
# Hook post image build stuff
|
|
hassos_post_image
|