Skip to content

Commit f813c69

Browse files
THS-onmpeters
authored andcommitted
tpm_emulator: improve TPM emulator installation
Signed-off-by: Thore Sommer <[email protected]>
1 parent 2e89f93 commit f813c69

File tree

2 files changed

+1
-18
lines changed

2 files changed

+1
-18
lines changed

ima_stub_service/installer.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,5 @@ for service in "tpm_emulator.service" "ima_emulator.service"; do
2121
systemctl enable ${service}
2222
done
2323

24+
systemctl daemon-reload
2425
systemctl start ima_emulator.service

installer.sh

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -508,21 +508,6 @@ if [[ "$TPM_SOCKET" -eq "1" ]] ; then
508508
popd # tpm/swtpm2
509509
fi
510510

511-
if [[ "$TPM_SOCKET" -eq "1" ]] ; then
512-
pushd scripts
513-
514-
# Ensure everything is executable
515-
chmod +x init_tpm_server
516-
chmod +x tpm_serverd
517-
518-
# Install scripts
519-
install -c tpm_serverd /usr/local/bin/tpm_serverd
520-
install -c init_tpm_server /usr/local/bin/init_tpm_server
521-
522-
# Clear TPM on first use
523-
init_tpm_server
524-
fi
525-
526511

527512
# Install keylime
528513
echo
@@ -587,9 +572,6 @@ if [[ "$TPM_SOCKET" -eq "1" ]] ; then
587572
# starts emulator and IMA stub at boot
588573
cd $KEYLIME_DIR/ima_stub_service
589574
./installer.sh
590-
if [[ -n "$(command -v service)" ]] ; then
591-
service tpm_emulator restart
592-
fi
593575

594576
echo "=================================================================================="
595577
echo $'\tWARNING: Please set the env var for accessing the TPM:'

0 commit comments

Comments
 (0)