Resolves #50069 Omarchy 4 ships its own /etc/os-release with ID=omarchy, where earlier versions inherited ID=arch from Arch Linux. Since HostLinuxOSs and HOST_LINUX_PLATFORMS gate nearly every Linux check, these hosts had empty vitals and software inventory, were missed by linux-scoped policies and labels, had no disk encryption or key escrow, and lost Run script in the UI (the API was unaffected). Add "omarchy" to HostLinuxOSs, HostNeitherDebNorRpmPackageOSs (pacman- based), IsLUKSSupported, HOST_LINUX_PLATFORMS, DISK_ENCRYPTION_SUPPORTED_LINUX_PLATFORMS, and the Vitals disk-encryption tooltip. Regenerate understanding-host-vitals.md. Aggregate Omarchy onto the "Arch Linux" / "rolling" OS inventory row, where these hosts sat before quattro. Unlike CachyOS, Omarchy reports a real release number rather than BUILD_ID=rolling, so the version is pinned after parsing instead of rewriting the ingested build value. Also add a fleetd test container, built on archlinux since Omarchy publishes no image.
56 lines
2.1 KiB
Bash
Executable File
56 lines
2.1 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
set -euo pipefail
|
|
|
|
script_dir=$(dirname -- "$(readlink -f -- "$BASH_SOURCE")")
|
|
cd "$script_dir"
|
|
|
|
echo "Building fleetd deb (amd64) package..."
|
|
fleetctl package --type=deb \
|
|
--enable-scripts \
|
|
--fleet-url=https://host.docker.internal:8080 \
|
|
--enroll-secret=placeholder \
|
|
--fleet-certificate=../osquery/fleet.crt \
|
|
--disable-open-folder \
|
|
--outfile=fleet-osquery_amd64.deb \
|
|
${UPDATE_URL:+--update-url=$UPDATE_URL} \
|
|
${ORBIT_CHANNEL:+--orbit-channel=$ORBIT_CHANNEL} \
|
|
${DESKTOP_CHANNEL:+--desktop-channel=$DESKTOP_CHANNEL} \
|
|
${OSQUERYD_CHANNEL:+--osqueryd-channel=$OSQUERYD_CHANNEL} \
|
|
--debug
|
|
|
|
echo "Building fleetd rpm (amd64) package..."
|
|
fleetctl package --type=rpm \
|
|
--enable-scripts \
|
|
--fleet-url=https://host.docker.internal:8080 \
|
|
--enroll-secret=placeholder \
|
|
--fleet-certificate=../osquery/fleet.crt \
|
|
--disable-open-folder \
|
|
--outfile=fleet-osquery_amd64.rpm \
|
|
${UPDATE_URL:+--update-url=$UPDATE_URL} \
|
|
${ORBIT_CHANNEL:+--orbit-channel=$ORBIT_CHANNEL} \
|
|
${DESKTOP_CHANNEL:+--desktop-channel=$DESKTOP_CHANNEL} \
|
|
${OSQUERYD_CHANNEL:+--osqueryd-channel=$OSQUERYD_CHANNEL} \
|
|
--debug
|
|
|
|
echo "Building fleetd pkg.tar.zst (amd64) package..."
|
|
fleetctl package --type=pkg.tar.zst \
|
|
--enable-scripts \
|
|
--fleet-url=https://host.docker.internal:8080 \
|
|
--enroll-secret=placeholder \
|
|
--fleet-certificate=../osquery/fleet.crt \
|
|
--disable-open-folder \
|
|
--outfile=fleet-osquery_amd64.pkg.tar.zst \
|
|
${UPDATE_URL:+--update-url=$UPDATE_URL} \
|
|
${ORBIT_CHANNEL:+--orbit-channel=$ORBIT_CHANNEL} \
|
|
${DESKTOP_CHANNEL:+--desktop-channel=$DESKTOP_CHANNEL} \
|
|
${OSQUERYD_CHANNEL:+--osqueryd-channel=$OSQUERYD_CHANNEL} \
|
|
--debug
|
|
|
|
echo "Building docker images..."
|
|
docker build -t fleetd-ubuntu-24.04 --platform=linux/amd64 -f ./ubuntu-24.04/Dockerfile .
|
|
docker build -t fleetd-fedora-43 --platform=linux/amd64 -f ./fedora-43/Dockerfile .
|
|
docker build -t fleetd-debian-13.4 --platform=linux/amd64 -f ./debian-13.4/Dockerfile .
|
|
docker build -t fleetd-cachyos --platform=linux/amd64 -f ./cachyos/Dockerfile .
|
|
docker build -t fleetd-fake-omarchy --platform=linux/amd64 -f ./fake-omarchy/Dockerfile .
|