hide the installer

This commit is contained in:
lukas 2021-11-10 16:41:59 +01:00
parent 567b95e7b7
commit bfdcf2f11f

View File

@ -311,68 +311,68 @@ fi
cat >> /etc/rc.d/init.d/livesys << EOF cat >> /etc/rc.d/init.d/livesys << EOF
# disable gnome-software automatically downloading updates # # 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
# don't autostart gnome-software session service # # disable the gnome-software shell search provider
rm -f /etc/xdg/autostart/gnome-software-service.desktop # cat >> /usr/share/gnome-shell/search-providers/org.gnome.Software-search-provider.ini << FOE
# DefaultDisabled=true
# FOE
# disable the gnome-software shell search provider # # don't run gnome-initial-setup
cat >> /usr/share/gnome-shell/search-providers/org.gnome.Software-search-provider.ini << FOE # mkdir ~liveuser/.config
DefaultDisabled=true # touch ~liveuser/.config/gnome-initial-setup-done
FOE
# don't run gnome-initial-setup
mkdir ~liveuser/.config
touch ~liveuser/.config/gnome-initial-setup-done
# suppress anaconda spokes redundant with gnome-initial-setup # suppress anaconda spokes redundant with gnome-initial-setup
cat >> /etc/sysconfig/anaconda << FOE # cat >> /etc/sysconfig/anaconda << FOE
[NetworkSpoke] # [NetworkSpoke]
visited=1 # visited=1
#
# [PasswordSpoke]
# visited=1
#
# [UserSpoke]
# visited=1
# FOE
[PasswordSpoke] ## make the installer show up
visited=1 #if [ -f /usr/share/applications/liveinst.desktop ]; then
# # Show harddisk install in shell dash
[UserSpoke] # sed -i -e 's/NoDisplay=true/NoDisplay=false/' /usr/share/applications/liveinst.desktop ""
visited=1 # # need to move it to anaconda.desktop to make shell happy
FOE # mv /usr/share/applications/liveinst.desktop /usr/share/applications/anaconda.desktop
#
# make the installer show up # cat >> /usr/share/glib-2.0/schemas/org.gnome.shell.gschema.override << FOE
if [ -f /usr/share/applications/liveinst.desktop ]; then # [org.gnome.shell]
# Show harddisk install in shell dash # favorite-apps=['firefox.desktop', 'org.gnome.Calendar.desktop', 'rhythmbox.desktop', 'org.gnome.Photos.desktop', 'org.gnome.Nautilus.desktop', 'anaconda.desktop']
sed -i -e 's/NoDisplay=true/NoDisplay=false/' /usr/share/applications/liveinst.desktop "" # FOE
# need to move it to anaconda.desktop to make shell happy #
mv /usr/share/applications/liveinst.desktop /usr/share/applications/anaconda.desktop # # Make the welcome screen show up
# if [ -f /usr/share/anaconda/gnome/fedora-welcome.desktop ]; then
cat >> /usr/share/glib-2.0/schemas/org.gnome.shell.gschema.override << FOE # mkdir -p ~liveuser/.config/autostart
[org.gnome.shell] # cp /usr/share/anaconda/gnome/fedora-welcome.desktop /usr/share/applications/
favorite-apps=['firefox.desktop', 'org.gnome.Calendar.desktop', 'rhythmbox.desktop', 'org.gnome.Photos.desktop', 'org.gnome.Nautilus.desktop', 'anaconda.desktop'] # cp /usr/share/anaconda/gnome/fedora-welcome.desktop ~liveuser/.config/autostart/
FOE # fi
#
# Make the welcome screen show up # # Disable GNOME welcome tour so it doesn't overlap with Fedora welcome screen
if [ -f /usr/share/anaconda/gnome/fedora-welcome.desktop ]; then # cat >> /usr/share/glib-2.0/schemas/org.gnome.shell.gschema.override << FOE
mkdir -p ~liveuser/.config/autostart # welcome-dialog-last-shown-version='4294967295'
cp /usr/share/anaconda/gnome/fedora-welcome.desktop /usr/share/applications/ # FOE
cp /usr/share/anaconda/gnome/fedora-welcome.desktop ~liveuser/.config/autostart/ #
fi # # Copy Anaconda branding in place
# if [ -d /usr/share/lorax/product/usr/share/anaconda ]; then
# Disable GNOME welcome tour so it doesn't overlap with Fedora welcome screen # cp -a /usr/share/lorax/product/* /
cat >> /usr/share/glib-2.0/schemas/org.gnome.shell.gschema.override << FOE # fi
welcome-dialog-last-shown-version='4294967295' # fi
FOE
# Copy Anaconda branding in place
if [ -d /usr/share/lorax/product/usr/share/anaconda ]; then
cp -a /usr/share/lorax/product/* /
fi
fi
# rebuild schema cache with any overrides we installed # rebuild schema cache with any overrides we installed
glib-compile-schemas /usr/share/glib-2.0/schemas # glib-compile-schemas /usr/share/glib-2.0/schemas
# set up auto-login # set up auto-login
cat > /etc/gdm/custom.conf << FOE cat > /etc/gdm/custom.conf << FOE
@ -382,9 +382,9 @@ AutomaticLogin=liveuser
FOE FOE
# Turn off PackageKit-command-not-found while uninstalled # Turn off PackageKit-command-not-found while uninstalled
if [ -f /etc/PackageKit/CommandNotFound.conf ]; then # if [ -f /etc/PackageKit/CommandNotFound.conf ]; then
sed -i -e 's/^SoftwareSourceSearch=true/SoftwareSourceSearch=false/' /etc/PackageKit/CommandNotFound.conf # sed -i -e 's/^SoftwareSourceSearch=true/SoftwareSourceSearch=false/' /etc/PackageKit/CommandNotFound.conf
fi # fi
# make sure to set the right permissions and selinux contexts # make sure to set the right permissions and selinux contexts
chown -R liveuser:liveuser /home/liveuser/ chown -R liveuser:liveuser /home/liveuser/