Accepting request 932566 from X11:XOrg
- %post: enable Xorg on s390x with virtio (Redhat PCI ID 1af4:1050) via /etc/sysconfig/displaymanager on installation (but not upgrade) by checking for existence of /dev/dri [JIRA#SLE-18632] OBS-URL: https://build.opensuse.org/request/show/932566 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xdm?expand=0&rev=91
This commit is contained in:
commit
45eaf4cc66
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 19 16:12:35 UTC 2021 - Stefan Dirsch <sndirsch@suse.com>
|
||||
|
||||
- %post: enable Xorg on s390x with virtio (Redhat PCI ID 1af4:1050)
|
||||
via /etc/sysconfig/displaymanager on installation (but not upgrade)
|
||||
by checking for existence of /dev/dri [JIRA#SLE-18632]
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon May 17 07:35:04 UTC 2021 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||
|
||||
|
10
xdm.spec
10
xdm.spec
@ -176,6 +176,16 @@ ln -s %{_sysconfdir}/alternatives/default-displaymanager %{buildroot}%{_prefix}/
|
||||
touch %{buildroot}%{_prefix}/lib/X11/displaymanagers/console
|
||||
|
||||
%post
|
||||
# enable Xorg on s390x with virtio (Redhat PCI ID 1af4:1050) on installation (but not upgrade)
|
||||
if [ $1 -eq 1 ] ; then
|
||||
if [ "$(arch)" == "s390x" ]; then
|
||||
if [ -d /dev/dri ]; then
|
||||
sed -i -e "s+DISPLAYMANAGER_REMOTE_ACCESS=.*+DISPLAYMANAGER_REMOTE_ACCESS=\"no\"+g" \
|
||||
-e "s+DISPLAYMANAGER_STARTS_XSERVER=.*+DISPLAYMANAGER_STARTS_XSERVER=\"yes\"+g" \
|
||||
%{_fillupdir}//sysconfig.displaymanager
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
%service_add_post display-manager.service
|
||||
%{fillup_only -n displaymanager}
|
||||
%{_sbindir}/update-alternatives --install %{_prefix}/lib/X11/displaymanagers/default-displaymanager \
|
||||
|
Loading…
Reference in New Issue
Block a user