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
|
// 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));
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue