Persist tpm data across host reboots.

This commit is contained in:
Michael Lipp 2023-06-09 16:49:32 +02:00
parent 53e95d02ab
commit 20764c9afe
2 changed files with 2 additions and 1 deletions

View file

@ -303,6 +303,7 @@ public class Runner extends Component {
// Configure data model // Configure data model
var model = new HashMap<String, Object>(); var model = new HashMap<String, Object>();
model.put("dataDir", config.dataDir);
model.put("runtimeDir", config.runtimeDir); model.put("runtimeDir", config.runtimeDir);
model.put("firmwareRom", Optional.ofNullable(config.firmwareRom) model.put("firmwareRom", Optional.ofNullable(config.firmwareRom)
.map(Object::toString).orElse(null)); .map(Object::toString).orElse(null));

View file

@ -7,7 +7,7 @@
"arguments": "arguments":
- "socket" - "socket"
- "--tpm2" - "--tpm2"
- [ "--tpmstate", "dir=${ runtimeDir }" ] - [ "--tpmstate", "dir=${ dataDir }" ]
- [ "--ctrl", "type=unixio,path=${ runtimeDir }/swtpm-sock,mode=0600" ] - [ "--ctrl", "type=unixio,path=${ runtimeDir }/swtpm-sock,mode=0600" ]
- "--terminate" - "--terminate"