Persist tpm data across host reboots.
This commit is contained in:
parent
53e95d02ab
commit
20764c9afe
2 changed files with 2 additions and 1 deletions
|
|
@ -303,6 +303,7 @@ public class Runner extends Component {
|
|||
|
||||
// Configure data model
|
||||
var model = new HashMap<String, Object>();
|
||||
model.put("dataDir", config.dataDir);
|
||||
model.put("runtimeDir", config.runtimeDir);
|
||||
model.put("firmwareRom", Optional.ofNullable(config.firmwareRom)
|
||||
.map(Object::toString).orElse(null));
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
"arguments":
|
||||
- "socket"
|
||||
- "--tpm2"
|
||||
- [ "--tpmstate", "dir=${ runtimeDir }" ]
|
||||
- [ "--tpmstate", "dir=${ dataDir }" ]
|
||||
- [ "--ctrl", "type=unixio,path=${ runtimeDir }/swtpm-sock,mode=0600" ]
|
||||
- "--terminate"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue