modprobe after you wait a bit

This commit is contained in:
ghe0 2024-11-10 04:19:47 +02:00
parent b426f1ed51
commit 11a5b122c8
Signed by: ghe0
GPG Key ID: 451028EE56A0FBB4
2 changed files with 5 additions and 1 deletions

@ -11,6 +11,10 @@ load_modules
create_certs
setup_network
# if you wait a bit, it works. The Kernel works in mysterious ways.
sleep 5
modprobe sev_guest
guest_api || echo DeTEE API got killed by the user.
if [[ -f "$INSTALL_URL" ]]; then

@ -120,7 +120,7 @@ detee_ssh_key() {
grep -F "$( echo $key | awk '{ print $2 }' )" authorized_keys || {
echo "$key" >> authorized_keys
}
done < /tmp/detee_ssh_key
done < "$SSH_KEY_FILE"
chmod 600 authorized_keys
}