heads/initrd/etc/keylime-init
Trammell Hudson c40748aa25
Build time configuration for startup scripts and modules.
This addresses multiple issues:

* Issue #63: initrd is build fresh each time, so tracked files do not matter.
* Issue #144: build time configuration
* Issue #123: allows us to customize the startup experience
* Issue #122: manual start-xen will go away
* Issue #25: tpmtotp PCRs are updated after reading the secret
* Issue #16: insmod now meaures modules
2017-03-31 11:18:46 -04:00

18 lines
340 B
Bash
Executable File

#!/bin/sh
# Bring up the x230's NIC, get a DHCP address and invoke keylime
insmod /lib/modules/e1000e.ko
udhcpc -n
cd /
wget-measure.sh 6 http://192.168.1.5/keylime.tar.gz
tar xf keylime.tar.gz
if [ ! -x /keylime-node ]; then
echo '!!!! Keylime overlay not found?'
tpm extend -ix 4 -ic "recovery"
exec /bin/ash
fi
exec /keylime-node