mirror of
https://github.com/cockpit-project/cockpit.git
synced 2026-11-03 21:49:50 -09:00
test: Hack who AppArmor locales policy on Ubuntu 26.04
See https://launchpad.net/bugs/2151857. This breaks most tests due to the unexpected message (so too frequent for naughty), and is easy enough to avoid.
This commit is contained in:
parent
e3a47d70f9
commit
902d97af43
1 changed files with 5 additions and 0 deletions
|
|
@ -51,6 +51,11 @@ if [ "$ID" = "opensuse-tumbleweed" ]; then
|
|||
echo "127.0.1.1 codecs.opensuse.org" >> /etc/hosts
|
||||
fi
|
||||
|
||||
if [ "$ID" = "ubuntu" ] && [ "$VERSION_ID" = "26.04" ]; then
|
||||
# HACK: https://launchpad.net/bugs/2151857
|
||||
echo '/usr/share/coreutils/locales/** r,' > /etc/apparmor.d/local/who
|
||||
fi
|
||||
|
||||
PLATFORM_ID="${PLATFORM_ID:-}"
|
||||
if [ "${PLATFORM_ID#platform:el}" != "$PLATFORM_ID" ]; then
|
||||
# allow /usr/local/bin/ in sudo shells, to use our installed tools like the Python bridge
|
||||
|
|
|
|||
Loading…
Reference in a new issue