whites out /lib/modules and /usr/src
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snappy |
Fix Released
|
Undecided
|
Unassigned | ||
snap-confine |
Invalid
|
Undecided
|
Unassigned |
Bug Description
In trying to snap bcc (https:/
chdir(/
Traceback (most recent call last):
File "/snap/
""", debug=0)
File "/snap/
raise Exception("Failed to compile BPF module %s" % src_file)
Exception: Failed to compile BPF module
Digging further, I discovered that ubuntu-
Given that this code path is just used for Ubuntu Classic, we could instead bind mount one level down, skipping over /usr/src and /lib/modules (as those will match the running kernel).
Good catch, thanks for tackling bcc Ev, that's the stuff of movies :)