“Device or resource busy” error during snap refresh when using layout with variable
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Fix Released
|
High
|
Zygmunt Krynicki |
Bug Description
Refreshing a snap that contains certain (valid) layouts aborts with this error:
```
error: cannot perform the following tasks:
- Setup snap "snapd-
- Setup snap "snapd-
```
The layout which caused the error in my tests was this one:
```
layout:
/usr/
bind: $SNAP/usr/
```
The resulting snap.yaml has $SNAPCRAFT_
After discarding the namespace file with `sudo /usr/lib/
Reference: https:/
Changed in snapd: | |
status: | New → In Progress |
assignee: | nobody → Zygmunt Krynicki (zyga) |
Changed in snapd: | |
milestone: | none → 2.42.3 |
I can no longer reproduce this on 2.42~pre1.1 using a simplified test. Perhaps the key to triggering this bug is to also keep something open (e.g. application actually using libraries from that spot). Can you please re-check with core/snapd from the edge channel to see if there is any improvement.
If you don't find any I will attempt to build a more comprehensive test that will trigger this.