From 9e0d778df3fe13664e8a7dcff4e4792923d90e60 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Mon, 4 Nov 2024 14:28:13 -0500 Subject: [PATCH] bootupd-static: Drop this test It breaks due to https://bugzilla.redhat.com/show_bug.cgi?id=2308594 --- tests/kolainst/destructive/bootupd-static.sh | 36 -------------------- 1 file changed, 36 deletions(-) delete mode 100755 tests/kolainst/destructive/bootupd-static.sh diff --git a/tests/kolainst/destructive/bootupd-static.sh b/tests/kolainst/destructive/bootupd-static.sh deleted file mode 100755 index 670178e47d..0000000000 --- a/tests/kolainst/destructive/bootupd-static.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/bash -set -xeuo pipefail - -. ${KOLA_EXT_DATA}/libinsttest.sh - -require_writable_sysroot -prepare_tmpdir - -bootupd_state=/boot/bootupd-state.json -mount -o remount,rw /boot -if grep -qFe "\"static-configs\"" "${bootupd_state}"; then - echo "Host is using static configs already, overriding this" - jq --compact-output '.["static-configs"] = null' < "${bootupd_state}" > "${bootupd_state}".new - mv "${bootupd_state}.new" "${bootupd_state}" -fi - -# Print the current value for reference, it's "none" on FCOS derivatives -ostree config get sysroot.bootloader || true -ostree config set sysroot.bootloader auto - -ostree admin deploy --stage "${host_commit}" -systemctl stop ostree-finalize-staged.service -used_bootloader=$(journalctl -u ostree-finalize-staged -o json MESSAGE_ID=dd440e3e549083b63d0efc7dc15255f1 | tail -1 | jq -r .OSTREE_BOOTLOADER) -# We're verifying the legacy default now -assert_streq "${used_bootloader}" "grub2" -ostree admin undeploy 0 - -# Now synthesize a bootupd config which uses static configs -jq '. + {"static-configs": {}}' < "${bootupd_state}" > "${bootupd_state}".new -mv "${bootupd_state}.new" "${bootupd_state}" -ostree admin deploy --stage "${host_commit}" -systemctl stop ostree-finalize-staged.service -used_bootloader=$(journalctl -u ostree-finalize-staged -o json MESSAGE_ID=dd440e3e549083b63d0efc7dc15255f1 | tail -1 | jq -r .OSTREE_BOOTLOADER) -assert_streq "${used_bootloader}" "none" - -echo "ok bootupd static"