From 6cfae3af98dcfa52b8e9e6a21b100c47d34ec6e2 Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Mon, 13 Nov 2023 10:28:48 -0700 Subject: [PATCH] func: add starting podman tests --- func/core/pkg_podman/00-install-podman.sh | 4 ++++ func/core/pkg_podman/10-test-podman.sh | 4 ++++ func/core/pkg_podman/11-test-podman-socket.sh | 3 +++ func/core/pkg_secureboot/11-test-shim-certs.sh | 11 ++++++++--- 4 files changed, 19 insertions(+), 3 deletions(-) create mode 100755 func/core/pkg_podman/00-install-podman.sh create mode 100755 func/core/pkg_podman/10-test-podman.sh create mode 100755 func/core/pkg_podman/11-test-podman-socket.sh diff --git a/func/core/pkg_podman/00-install-podman.sh b/func/core/pkg_podman/00-install-podman.sh new file mode 100755 index 0000000..e80295b --- /dev/null +++ b/func/core/pkg_podman/00-install-podman.sh @@ -0,0 +1,4 @@ +#!/bin/bash +# +r_log "podman" "Installing podman" +p_installPackageNormal podman diff --git a/func/core/pkg_podman/10-test-podman.sh b/func/core/pkg_podman/10-test-podman.sh new file mode 100755 index 0000000..759f91d --- /dev/null +++ b/func/core/pkg_podman/10-test-podman.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +r_log "podman" "Testing podman" + diff --git a/func/core/pkg_podman/11-test-podman-socket.sh b/func/core/pkg_podman/11-test-podman-socket.sh new file mode 100755 index 0000000..2f37acf --- /dev/null +++ b/func/core/pkg_podman/11-test-podman-socket.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +r_log "podman" "Testing podman sockets" diff --git a/func/core/pkg_secureboot/11-test-shim-certs.sh b/func/core/pkg_secureboot/11-test-shim-certs.sh index 98ad437..febacce 100755 --- a/func/core/pkg_secureboot/11-test-shim-certs.sh +++ b/func/core/pkg_secureboot/11-test-shim-certs.sh @@ -8,7 +8,12 @@ if [ ! -d /sys/firmware/efi ]; then exit 0 fi else - p_installPackageNormal pesign - pesign --show-signature --in /boot/efi/EFI/rocky/shim.efi | grep -Eq "Microsoft Windows UEFI Driver Publisher" - r_checkExitStatus $? + if [[ "$rl_arch" == "x86_64" ]]; then + p_installPackageNormal pesign + pesign --show-signature --in /boot/efi/EFI/rocky/shim.efi | grep -Eq "Microsoft Windows UEFI Driver Publisher" + r_checkExitStatus $? + else + r_log "secureboot" "x86_64 is the only supported secureboot arch at this time" + exit 0 + fi fi