File: task.yaml

package info (click to toggle)
snapd 2.72-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 80,412 kB
  • sloc: sh: 16,506; ansic: 16,211; python: 11,213; makefile: 1,919; exp: 190; awk: 58; xml: 22
file content (27 lines) | stat: -rw-r--r-- 1,134 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
summary: Experimental features are exported by snapd

details: |
    Some of the experimental features are exported as flag files that can be
    easily read by snap-confine and snap-update-ns that otherwise don't have
    access to the system state.

execute: |
    # When a feature that is exported is enabled, a file is created.
    snap set core experimental.per-user-mount-namespace=true
    test -f /var/lib/snapd/features/per-user-mount-namespace

    # When a feature that is exported is disabled, a file is removed.
    snap set core experimental.per-user-mount-namespace=false
    test ! -f /var/lib/snapd/features/per-user-mount-namespace

    # When a feature that is not exported is enabled, a file is not created.
    snap set core experimental.layouts=true
    test ! -f /var/lib/snapd/features/layouts

    # Features are exported when snapd starts up
    snap set core experimental.parallel-instances=true
    test -f /var/lib/snapd/features/parallel-instances
    systemctl stop snapd
    rm /var/lib/snapd/features/parallel-instances
    systemctl start snapd
    test -f /var/lib/snapd/features/parallel-instances