Browsing Chinese (Simplified) translation

28 of 815 results
28.

The fde-setup-request command is used inside the fde-setup hook. It will
return information about what operation for full-disk encryption is
requested and auxiliary data to complete this operation.

The fde-setup hook should do what is requested and then call
"snapctl fde-setup-result" and pass the result data to stdin.

Here is an example for how the fde-setup hook is called initially:
$ snapctl fde-setup-request
{"op":"features"}
$ echo '[]' | snapctl fde-setup-result

Alternatively the hook could reply with:
$ echo '{"error":"hardware-unsupported"}' | snapctl fde-setup-result

And then it is called again with a request to do the initial key setup:
$ snapctl fde-setup-request
{"op":"initial-setup", "key": "key-to-seal", "key-name":"key-for-ubuntu-data"}
$ echo "$sealed_key" | snapctl fde-setup-result
There are line breaks here. Each one represents a line break. Start a new line in the equivalent position in the translation.

fde-setup-request 命令用于 fde-setup 钩子中,它会返回有关全盘加密所请求的操作以及辅助数据的信息。

fde-setup 钩子应该执行所请求的操作,然后调用 "snapctl fde-setup-result" 并将结果数据传递给 stdin。

以下是 fde-setup 钩子最初被调用的示例:
$ snapctl fde-setup-request
{"op":"features"}
$ echo '[]' | snapctl fde-setup-result

或者钩子也可以回复以下内容:
$ echo '{"error":"hardware-unsupported"}' | snapctl fde-setup-result

然后它会再次被调用以请求进行初始密钥设置:
$ snapctl fde-setup-request
{"op":"initial-setup", "key": "key-to-seal", "key-name":"key-for-ubuntu-data"}
$ echo "$sealed_key" | snapctl fde-setup-result
Translated by Luke Na
Located in overlord/hookstate/ctlcmd/fde_setup.go:36
28 of 815 results

This translation is managed by Ubuntu Simplified Chinese Translators, assigned by Ubuntu Translators.

You are not logged in. Please log in to work on translations.