workstation: Don't autostart gnome-software on live media

gnome-software session service automatically downloads yum metadata,
which all goes to the RAM-backed filesystem overlay when running the
live image. This is undesired as it can make it difficult to install
Workstation on low memory devices.

To fix this, this commit disables gnome-software xdg autostart service
and the gnome-shell search provider on the live media.

https://bugzilla.redhat.com/show_bug.cgi?id=1560504
This commit is contained in:
Kalev Lember 2018-03-26 11:13:21 +02:00
parent af96d2b41f
commit c236c5f53c

View File

@ -17,12 +17,20 @@ part / --size 6656
cat >> /etc/rc.d/init.d/livesys << EOF cat >> /etc/rc.d/init.d/livesys << EOF
# disable updates plugin # disable gnome-software automatically downloading updates
cat >> /usr/share/glib-2.0/schemas/org.gnome.software.gschema.override << FOE cat >> /usr/share/glib-2.0/schemas/org.gnome.software.gschema.override << FOE
[org.gnome.software] [org.gnome.software]
download-updates=false download-updates=false
FOE FOE
# don't autostart gnome-software session service
rm -f /etc/xdg/autostart/gnome-software-service.desktop
# disable the gnome-software shell search provider
cat >> /usr/share/gnome-shell/search-providers/org.gnome.Software-search-provider.ini << FOE
DefaultDisabled=true
FOE
# don't run gnome-initial-setup # don't run gnome-initial-setup
mkdir ~liveuser/.config mkdir ~liveuser/.config
touch ~liveuser/.config/gnome-initial-setup-done touch ~liveuser/.config/gnome-initial-setup-done