Skip to content

Commit

Permalink
Update snp_function_declarations.sh
Browse files Browse the repository at this point in the history
Signed-off-by: LakshmiSaiHarika <[email protected]>
  • Loading branch information
LakshmiSaiHarika authored Nov 20, 2024
1 parent 25632fc commit 8683bfe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/snp_function_declarations.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/bin/bash

verify_snp_host() {
local AMDSEV_URL="https://github.com/LakshmiSaiHarika/AMDSEV.git"
local AMDSEV_DEFAULT_BRANCH="fedora-build-install-upstream-kernel"

if ! sudo dmesg | grep -i "SEV-SNP enabled" 2>&1 >/dev/null; then
echo -e "SEV-SNP not enabled on the host. Please follow these steps to enable:\n\
$(echo "${AMDSEV_URL}" | sed 's|\.git$||g')/tree/${AMDSEV_DEFAULT_BRANCH}#prepare-host"
Expand All @@ -17,4 +20,3 @@ check_rust_on_host() {
source "${HOME}/.cargo/env" 2>/dev/null
fi
}

0 comments on commit 8683bfe

Please sign in to comment.