Merge ~alfonsosanchezbeato/snappy-hwe-snaps/+git/network-manager:fix-udev-detect into ~snappy-hwe-team/snappy-hwe-snaps/+git/network-manager:snap-20
Status: | Merged |
---|---|
Approved by: | Alfonso Sanchez-Beato |
Approved revision: | d084e6fd49660f25ee28dd7820c52279585f7ca9 |
Merged at revision: | 58f8d9915301d74ca03e9c6c41fa553dc4bd9ce6 |
Proposed branch: | ~alfonsosanchezbeato/snappy-hwe-snaps/+git/network-manager:fix-udev-detect |
Merge into: | ~snappy-hwe-team/snappy-hwe-snaps/+git/network-manager:snap-20 |
Diff against target: |
93 lines (+76/-0) 2 files modified
snap-patch/networkmanager/0004-platform-use-also-statvfs-to-check-for-udevd.patch (+72/-0) tests/main/debug-config-option/task.yaml (+4/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
System Enablement Bot | continuous-integration | Approve | |
Review via email: mp+391889@code.launchpad.net |
Commit message
Add patch to use udev even when confined
[PATCH] platform: use also statvfs() to check for udevd
Check whether or not there is a running udevd by using statvfs() on
"/sys" and use access() as a fallback. This is in line with what is
done by systemd [1] and helps in case NM is not really running in a
container but has been confined by a MAC so it does not have full
access to sysfs (access() returns EACCES). Fixes LP:#1712918,
LP:#1893184.
[1] https:/
Description of the change
Add patch to use udev even when confined
[PATCH] platform: use also statvfs() to check for udevd
Check whether or not there is a running udevd by using statvfs() on
"/sys" and use access() as a fallback. This is in line with what is
done by systemd [1] and helps in case NM is not really running in a
container but has been confined by a MAC so it does not have full
access to sysfs (access() returns EACCES). Fixes LP:#1712918,
LP:#1893184.
[1] https:/
PASSED: Continuous integration, rev:8eef7950bb1 f6620b86006665a 37ac168acaad6c /jenkins. canonical. com/system- enablement/ job/snappy- hwe-snaps- snap-build- prepare/ 533/ /jenkins. canonical. com/system- enablement/ job/snappy- hwe-snaps- snap-build/ ARCHITECTURE= amd64/566 /jenkins. canonical. com/system- enablement/ job/snappy- hwe-snaps- snap-build/ ARCHITECTURE= arm64/566 /jenkins. canonical. com/system- enablement/ job/snappy- hwe-snaps- snap-build/ ARCHITECTURE= armhf/566 /jenkins. canonical. com/system- enablement/ job/snappy- hwe-snaps- snap-build/ ARCHITECTURE= i386/566 /jenkins. canonical. com/system- enablement/ job/snappy- hwe-snaps- snap-docs/ 1355 /jenkins. canonical. com/system- enablement/ job/snappy- hwe-snaps- snap-cleanup/ 1097 /jenkins. canonical. com/system- enablement/ job/snappy- hwe-snaps- snap-update- mp/1146/ console
https:/
Executed test runs:
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
None: https:/
Click here to trigger a rebuild: /jenkins. canonical. com/system- enablement/ job/snappy- hwe-snaps- snap-build- prepare/ 533/rebuild
https:/