- add the abuild user to the trusted group so that

fusermount works (bug#1159963)

OBS-URL: https://build.opensuse.org/package/show/Base:System/post-build-checks?expand=0&rev=152
This commit is contained in:
Ruediger Oertel 2020-08-24 14:19:18 +00:00 committed by Git OBS Bridge
parent 856dafa61c
commit 58afa0fba6
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Aug 24 16:17:32 CEST 2020 - ro@suse.de
- add the abuild user to the trusted group so that
fusermount works (bug#1159963)
-------------------------------------------------------------------
Wed Aug 19 08:42:27 UTC 2020 - ro@suse.de

View File

@ -73,10 +73,16 @@ chmod 755 $RPM_BUILD_ROOT/usr/lib/build/checks-data/check*
if ! test -e /.buildenv; then
exit 0
fi
# change the PERMISSION set to "secure"
sed -i -e "s@^PERMISSION_SECURITY=.*@PERMISSION_SECURITY=\"secure\"@" /etc/sysconfig/security
# add the abuild user to the trusted group so that fusermount works
usermod -G trusted -a abuild || true
# set the timezone to UTC
if [ -f /etc/sysconfig/clock ] ; then
sed -i -e "s@^TIMEZONE=.*@TIMEZONE=\"UTC\"@" /etc/sysconfig/clock
fi
# and add the ugly workaround to override the output of uname -v
# to match the installed kernel sources
UNAME=/bin/uname
if test -f /usr/bin/uname ; then
UNAME=/usr/bin/uname