1
0
mirror of https://github.com/home-assistant/operating-system.git synced 2026-07-08 07:23:46 +01:00
Files
operating-system/buildroot-external/scripts/post-image.sh
T
2018-08-24 22:40:15 -06:00

31 lines
512 B
Bash
Executable File

#!/bin/bash
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
. ${SCRIPT_DIR}/ota.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
create_ota_update
# Hook post image build stuff
hassos_post_image