* Update config for Buildroot 2023.02 * Use Buildroot's version of the rtl8821cu package Buildroot provides a newer driver for the RTL8821CU based chipsets provided by https://github.com/morrownr/8821cu-20210118. * Pass argument when verifying partition table This also avoids running into a segmentation fault in the current version of sgdisk. * Remove obsolte GRUB2/NetworkManager patches * Bump buildroot * buildroot 90aa1a6daa...4832525e6c (4596): > package/runc: add support for CGroup device permission updates > package/network-manager: fix build with -Dmodem_manager=false > package/dbus-broker: bump to release 33 > package/iptables: Allow to use iptables with nf_tables backend > package/brcmfmac_sdio-firmware-rpi: bump to latest version > package/linux-firmware: Deploy fewer Intel WiFi 22000 series variants > package/linux-firmware: Add more Intel WiFi 22000 series variants > package/linux-firmware: Add Broadcom BNX2 firmware > package/rpi-firmware: bump version to 1.20230106 > Update for 2023.02-rc2 * Use Ubuntu 22.04 for CI checks * Bump xe-guest-utilities to 7.33.0 * Remove unnecessary shellcheck ignore for xe-guest-utilities * Address new buildroot check-packages issues
30 lines
969 B
Bash
Executable File
30 lines
969 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
APPARMOR_URL="https://version.home-assistant.io/apparmor.txt"
|
|
|
|
# Make sure we can talk to the Docker daemon
|
|
echo "Waiting for Docker daemon..."
|
|
while ! docker version 2> /dev/null > /dev/null; do
|
|
sleep 1
|
|
done
|
|
|
|
# Install Supervisor, plug-ins and landing page
|
|
echo "Loading container images..."
|
|
|
|
# Make sure to order images by size (largest first)
|
|
# It seems docker load requires space during operation
|
|
# shellcheck disable=SC2045
|
|
for image in $(ls -S /build/images/*.tar); do
|
|
docker load --input "${image}"
|
|
done
|
|
|
|
# Tag the Supervisor how the OS expects it to be tagged
|
|
supervisor=$(docker images --filter "label=io.hass.type=supervisor" --quiet)
|
|
arch=$(docker inspect --format '{{ index .Config.Labels "io.hass.arch" }}' "${supervisor}")
|
|
docker tag "${supervisor}" "ghcr.io/home-assistant/${arch}-hassio-supervisor:latest"
|
|
|
|
# Setup AppArmor
|
|
mkdir -p "/data/supervisor/apparmor"
|
|
wget -O "/data/supervisor/apparmor/hassio-supervisor" "${APPARMOR_URL}"
|