|
28.
|
|
|
![](/@@/translation-newline)
The fde-setup-request command is used inside the fde-setup hook. It will ![](/@@/translation-newline)
return information about what operation for full-disk encryption is ![](/@@/translation-newline)
requested and auxiliary data to complete this operation.
![](/@@/translation-newline)
The fde-setup hook should do what is requested and then call ![](/@@/translation-newline)
"snapctl fde-setup-result" and pass the result data to stdin.
![](/@@/translation-newline)
Here is an example for how the fde-setup hook is called initially: ![](/@@/translation-newline)
$ snapctl fde-setup-request ![](/@@/translation-newline)
{"op":"features"} ![](/@@/translation-newline)
$ echo '{"features": []}' | snapctl fde-setup-result
![](/@@/translation-newline)
Alternatively the hook could reply with: ![](/@@/translation-newline)
$ echo '{"error":"hardware-unsupported"}' | snapctl fde-setup-result
![](/@@/translation-newline)
And then it is called again with a request to do the initial key setup: ![](/@@/translation-newline)
$ snapctl fde-setup-request ![](/@@/translation-newline)
{"op":"initial-setup", "key": "key-to-seal"} ![](/@@/translation-newline)
$ echo "{"sealed-key":"$base64_encoded_sealed_key"}" | snapctl fde-setup-result
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
overlord/hookstate/ctlcmd/fde_setup.go:36
|
|
29.
|
|
|
![](/@@/translation-newline)
The fde-setup-result command sets the result data for a fde-setup hook ![](/@@/translation-newline)
reading it from stdin.
![](/@@/translation-newline)
For example: ![](/@@/translation-newline)
When the fde-setup hook is called with "op":"features: ![](/@@/translation-newline)
$ echo '{"features": []}' | snapctl fde-setup-result
![](/@@/translation-newline)
When the fde-setup hook is called with "op":"initial-setup": ![](/@@/translation-newline)
$ echo "{"sealed-key":"$base64_encoded_sealed_key"}" | snapctl fde-setup-result
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
overlord/hookstate/ctlcmd/fde_setup.go:101
|
|
33.
|
|
|
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
overlord/hookstate/ctlcmd/get.go:52
|
|
37.
|
|
|
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
cmd/snap/cmd_snap_op.go:52
|
|
40.
|
|
|
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
overlord/hookstate/ctlcmd/is_connected.go:54
|
|
42.
|
|
|
![](/@@/translation-newline)
The kmod command handles loading and unloading of kernel modules.
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
overlord/hookstate/ctlcmd/kmod.go:35
|
|
45.
|
|
|
![](/@@/translation-newline)
The login command authenticates the user to snapd and the snap store, and saves ![](/@@/translation-newline)
credentials into the ~/.snap/auth.json file. Further communication with snapd ![](/@@/translation-newline)
will then be made using those credentials.
![](/@@/translation-newline)
It's not necessary to log in to interact with snapd. Doing so, however, enables ![](/@@/translation-newline)
interactions without sudo, as well as some some developer-oriented features as ![](/@@/translation-newline)
detailed in the help for the find, install and refresh commands.
![](/@@/translation-newline)
An account can be set up at https://login.ubuntu.com
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
cmd/snap/cmd_login.go:42
|
|
50.
|
|
|
![](/@@/translation-newline)
The model command returns the active model assertion information for this ![](/@@/translation-newline)
device.
![](/@@/translation-newline)
By default, the model identification information is presented in a structured, ![](/@@/translation-newline)
yaml-like format, but this can be changed to json by using the --json flag.
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
overlord/hookstate/ctlcmd/model.go:44
|
|
51.
|
|
|
![](/@@/translation-newline)
The mount command mounts the given source onto the given destination path, ![](/@@/translation-newline)
provided that the snap has a plug for the mount-control interface which allows ![](/@@/translation-newline)
this operation.
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
overlord/hookstate/ctlcmd/mount.go:40
|
|
53.
|
|
|
![](/@@/translation-newline)
The pack command packs the given snap-dir as a snap and writes the result to ![](/@@/translation-newline)
target-dir. If target-dir is omitted, the result is written to current ![](/@@/translation-newline)
directory. If both source-dir and target-dir are omitted, the pack command packs ![](/@@/translation-newline)
the current directory.
![](/@@/translation-newline)
The default file name for a snap can be derived entirely from its snap.yaml, but ![](/@@/translation-newline)
in some situations it's simpler for a script to feed the filename in. In those ![](/@@/translation-newline)
cases, --filename can be given to override the default. If this filename is ![](/@@/translation-newline)
not absolute it will be taken as relative to target-dir.
![](/@@/translation-newline)
When used with --check-skeleton, pack only checks whether snap-dir contains ![](/@@/translation-newline)
valid snap metadata and raises an error otherwise. Application commands listed ![](/@@/translation-newline)
in snap metadata file, but appearing with incorrect permission bits result in an ![](/@@/translation-newline)
error. Commands that are missing from snap-dir are listed in diagnostic ![](/@@/translation-newline)
messages.
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
cmd/snap/cmd_pack.go:49
|