diff --git a/src/build_dpkg.sh b/src/build_dpkg.sh index 79fed5b4..cf61d0c3 100755 --- a/src/build_dpkg.sh +++ b/src/build_dpkg.sh @@ -39,6 +39,7 @@ LQOS_FILES=( scheduler.py ShapedDevices.example.csv shaping_skip_report.py + systemd_hotfix.sh virtual_tree_nodes.py mikrotikDHCPRouterList.template.csv integrationUISPbandwidths.template.csv @@ -115,6 +116,18 @@ popd > /dev/null || exit pushd "$DEBIAN_DIR" > /dev/null || exit cat < postinst #!/bin/bash +if /opt/libreqos/src/systemd_hotfix.sh should-offer >/dev/null 2>&1; then +cat >&2 <<'HOTFIX' +LibreQoS requires the Ubuntu 24.04 systemd-networkd hotfix on this host before installation can continue. + +Run: + HOTFIX_BASE_URL=https://downloads.libreqos.com sudo /opt/libreqos/src/systemd_hotfix.sh install + +Then re-run the LibreQoS package installation. +HOTFIX +exit 1 +fi + # Install Python Dependencies pushd /opt/libreqos # - Setup Python dependencies as a post-install task diff --git a/src/build_rust.sh b/src/build_rust.sh index 34757808..298c72ac 100755 --- a/src/build_rust.sh +++ b/src/build_rust.sh @@ -135,6 +135,8 @@ fi echo "-----------------------------------------------------------------" echo "Don't forget to setup /etc/lqos.conf!" echo "Template .service files can be found in bin/" +echo "Use ./systemd_hotfix.sh to evaluate or install the Ubuntu 24.04 networkd hotfix bundle." +echo "LibreQoS package installs on affected Ubuntu 24.04 hosts now require the hotfix first." echo "" echo "Run sudo rust/remove_pinned_maps.sh before you restart lqosd" echo "This ensures that any data-format changes will apply correctly."