|
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 '[]' | 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", "key-name":"key-for-ubuntu-data"} ![](/@@/translation-newline)
$ echo "$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 "[]" | snapctl fde-setup-result
![](/@@/translation-newline)
When the fde-setup hook is called with "op":"initial-setup": ![](/@@/translation-newline)
$ echo "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.
|
|
|
![](/@@/translation-newline)
The is-connected command returns success if the given plug or slot of the ![](/@@/translation-newline)
calling snap is connected, and failure otherwise.
![](/@@/translation-newline)
$ snapctl is-connected plug ![](/@@/translation-newline)
$ echo $? ![](/@@/translation-newline)
1
![](/@@/translation-newline)
Snaps can only query their own plugs and slots - snap name is implicit and ![](/@@/translation-newline)
implied by the snapctl execution context.
|
|
|
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:40
|
|
44.
|
|
|
![](/@@/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)
purchasing of snaps using 'snap buy', as well as some some developer-oriented ![](/@@/translation-newline)
features as 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 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
|
|
56.
|
|
|
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
cmd/snap/cmd_reboot.go:42
|
|
58.
|
|
|
|
|
|
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:83
|
|
76.
|
|
|
|
|
|
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/set.go:44
|