Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests/lib/prepare: drop workarounds for rpmbuild rewriting /bin/sh
Drop the workaround for rpmbuild rewriting /bin/sh to /usr/bin/sh. The snap-confine device cgroup setup would call snap-device-helper after pivoting to the snap mount namespace. This used to fail on Fedora because of the mangling done by rpm packaging that changes /bin/sh to /usr/bin/sh. In which, case we would try to run snap-device-helper using an interpreter at /usr/bin/sh that does not exist within the snap mount ns. The downstream packaging defined macros that prevented this scenario. Since #7049, snap-confine calls snap-device-helper before pivoting to the snap mount namespace, thus the host interpreter is still visible at the correct path. Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
- Loading branch information