From 72da8b21477e51cd8f630ee64911757a1e12f519 Mon Sep 17 00:00:00 2001 From: Prakash Surya Date: Wed, 28 Aug 2024 11:02:12 -0700 Subject: [PATCH] test: check contents of ca-certificates PR URL: https://www.github.com/delphix/appliance-build/pull/771 --- live-build/config/hooks/vm-artifacts/90-raw-disk-image.binary | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/live-build/config/hooks/vm-artifacts/90-raw-disk-image.binary b/live-build/config/hooks/vm-artifacts/90-raw-disk-image.binary index 0000f373..918a1c50 100755 --- a/live-build/config/hooks/vm-artifacts/90-raw-disk-image.binary +++ b/live-build/config/hooks/vm-artifacts/90-raw-disk-image.binary @@ -279,6 +279,10 @@ mount -t zfs "$FSNAME/crashdump" "/var/crash" # rsync --info=stats3 -Wa binary/* "$DIRECTORY/" +sudo chroot "$DIRECTORY" /bin/bash <<-EOF + awk -v cmd='openssl x509 -noout -subject' '/BEGIN/{close(cmd)};{print | cmd}' < /etc/ssl/certs/ca-certificates.crt | grep 'Go Daddy' +EOF + # # We rely on the "/etc/fstab" file to mount the non-root ZFS # filesystems, so that when a specific rootfs dataset is booted, it'll