Updating definitions, including disabling SELinux
adding new dishes
This commit is contained in:
@ -1,35 +1,29 @@
|
||||
# Generated by pykickstart v3.34
|
||||
# Generated by pykickstart v3.47
|
||||
#version=DEVEL
|
||||
# X Window System configuration information
|
||||
xconfig --defaultdesktop=GNOME --startxonboot
|
||||
# Keyboard layouts
|
||||
keyboard --xlayouts='ch (fr)'
|
||||
# Root password
|
||||
rootpw --iscrypted --lock locked
|
||||
# System language
|
||||
lang en_US.UTF-8
|
||||
# Shutdown after installation
|
||||
shutdown
|
||||
# Network information
|
||||
network --bootproto=dhcp --device=link --activate
|
||||
# Firewall configuration
|
||||
firewall --enabled --service=mdns
|
||||
# Use network installation
|
||||
url --mirrorlist="https://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever&arch=$basearch"
|
||||
repo --name="fedora" --mirrorlist=https://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever&arch=$basearch
|
||||
repo --name="updates" --mirrorlist=https://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f$releasever&arch=$basearch
|
||||
# System timezone
|
||||
timezone Europe/Paris --utc
|
||||
# Keyboard layouts
|
||||
keyboard --xlayouts='ch (fr)'
|
||||
# System language
|
||||
lang en_US.UTF-8
|
||||
# Network information
|
||||
network --bootproto=dhcp --device=link --activate
|
||||
# Shutdown after installation
|
||||
shutdown
|
||||
# Root password
|
||||
rootpw --iscrypted --lock locked
|
||||
# SELinux configuration
|
||||
selinux --enforcing
|
||||
# System timezone
|
||||
timezone Europe/Paris --utc
|
||||
# X Window System configuration information
|
||||
xconfig --defaultdesktop=GNOME --startxonboot
|
||||
# System bootloader configuration
|
||||
bootloader --location=none
|
||||
# Clear the Master Boot Record
|
||||
zerombr
|
||||
# Partition clearing information
|
||||
clearpart --all
|
||||
# Disk partitioning information
|
||||
part / --size=5120
|
||||
|
||||
%post --logfile=/root/bl.log
|
||||
|
||||
@ -184,7 +178,7 @@ hostnamectl set-hostname "localhost-live"
|
||||
EOF
|
||||
|
||||
# bah, hal starts way too late
|
||||
# cat > /etc/rc.d/init.d/livesys-late << EOF
|
||||
cat > /etc/rc.d/init.d/livesys-late << EOF
|
||||
#!/bin/bash
|
||||
#
|
||||
# live: Late init script for live image
|
||||
@ -192,50 +186,50 @@ EOF
|
||||
# chkconfig: 345 99 01
|
||||
# description: Late init script for live image.
|
||||
|
||||
# . /etc/init.d/functions
|
||||
#
|
||||
# if ! strstr "\`cat /proc/cmdline\`" rd.live.image || [ "\$1" != "start" ] || [ -e /.liveimg-late-configured ] ; then
|
||||
# exit 0
|
||||
# fi
|
||||
#
|
||||
# exists() {
|
||||
# which \$1 >/dev/null 2>&1 || return
|
||||
# \$*
|
||||
# }
|
||||
#
|
||||
# touch /.liveimg-late-configured
|
||||
. /etc/init.d/functions
|
||||
|
||||
if ! strstr "\`cat /proc/cmdline\`" rd.live.image || [ "\$1" != "start" ] || [ -e /.liveimg-late-configured ] ; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
exists() {
|
||||
which \$1 >/dev/null 2>&1 || return
|
||||
\$*
|
||||
}
|
||||
|
||||
touch /.liveimg-late-configured
|
||||
|
||||
# read some variables out of /proc/cmdline
|
||||
# for o in \`cat /proc/cmdline\` ; do
|
||||
# case \$o in
|
||||
# ks=*)
|
||||
# ks="--kickstart=\${o#ks=}"
|
||||
# ;;
|
||||
# xdriver=*)
|
||||
# xdriver="\${o#xdriver=}"
|
||||
# ;;
|
||||
# esac
|
||||
# done
|
||||
#
|
||||
for o in \`cat /proc/cmdline\` ; do
|
||||
case \$o in
|
||||
ks=*)
|
||||
ks="--kickstart=\${o#ks=}"
|
||||
;;
|
||||
xdriver=*)
|
||||
xdriver="\${o#xdriver=}"
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
# if liveinst or textinst is given, start anaconda
|
||||
# if strstr "\`cat /proc/cmdline\`" liveinst ; then
|
||||
# plymouth --quit
|
||||
# /usr/sbin/liveinst \$ks
|
||||
# fi
|
||||
# if strstr "\`cat /proc/cmdline\`" textinst ; then
|
||||
# plymouth --quit
|
||||
# /usr/sbin/liveinst --text \$ks
|
||||
# fi
|
||||
if strstr "\`cat /proc/cmdline\`" liveinst ; then
|
||||
plymouth --quit
|
||||
/usr/sbin/liveinst \$ks
|
||||
fi
|
||||
if strstr "\`cat /proc/cmdline\`" textinst ; then
|
||||
plymouth --quit
|
||||
/usr/sbin/liveinst --text \$ks
|
||||
fi
|
||||
|
||||
# configure X, allowing user to override xdriver
|
||||
# if [ -n "\$xdriver" ]; then
|
||||
# cat > /etc/X11/xorg.conf.d/00-xdriver.conf <<FOE
|
||||
# Section "Device"
|
||||
# Identifier "Videocard0"
|
||||
# Driver "\$xdriver"
|
||||
# EndSection
|
||||
# FOE
|
||||
# fi
|
||||
if [ -n "\$xdriver" ]; then
|
||||
cat > /etc/X11/xorg.conf.d/00-xdriver.conf <<FOE
|
||||
Section "Device"
|
||||
Identifier "Videocard0"
|
||||
Driver "\$xdriver"
|
||||
EndSection
|
||||
FOE
|
||||
fi
|
||||
|
||||
EOF
|
||||
|
||||
@ -293,6 +287,20 @@ touch /etc/machine-id
|
||||
|
||||
%end
|
||||
|
||||
%post --nochroot --logfile=/mnt/sysimage/opt/base-live.log
|
||||
# For livecd-creator builds only (lorax/livemedia-creator handles this directly)
|
||||
if [ -n "$LIVE_ROOT" ]; then
|
||||
cp "$INSTALL_ROOT"/usr/share/licenses/*-release-common/* "$LIVE_ROOT/"
|
||||
|
||||
# only installed on x86, x86_64
|
||||
if [ -f /usr/bin/livecd-iso-to-disk ]; then
|
||||
mkdir -p "$LIVE_ROOT/LiveOS"
|
||||
cp /usr/bin/livecd-iso-to-disk "$LIVE_ROOT/LiveOS"
|
||||
fi
|
||||
fi
|
||||
|
||||
%end
|
||||
|
||||
%post --nochroot --logfile=/mnt/sysimage/opt/base-desktop-gnome.log
|
||||
|
||||
cat >> /mnt/sysimage/usr/share/glib-2.0/schemas/org.gnome.desktop.background.gschema.override<< EOF
|
||||
@ -362,10 +370,73 @@ glib-compile-schemas /mnt/sysimage/usr/share/glib-2.0/schemas/
|
||||
|
||||
%end
|
||||
|
||||
%post --logfile=/opt/live-desktop-quirks.log
|
||||
%post --logfile=/root/ld.log
|
||||
|
||||
cat >> /etc/rc.d/init.d/livesys << EOF
|
||||
|
||||
# # disable gnome-software automatically downloading updates
|
||||
# cat >> /usr/share/glib-2.0/schemas/org.gnome.software.gschema.override << FOE
|
||||
# [org.gnome.software]
|
||||
# download-updates=false
|
||||
# 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
|
||||
# mkdir ~liveuser/.config
|
||||
# touch ~liveuser/.config/gnome-initial-setup-done
|
||||
|
||||
# suppress anaconda spokes redundant with gnome-initial-setup
|
||||
# cat >> /etc/sysconfig/anaconda << FOE
|
||||
# [NetworkSpoke]
|
||||
# visited=1
|
||||
#
|
||||
# [PasswordSpoke]
|
||||
# visited=1
|
||||
#
|
||||
# [UserSpoke]
|
||||
# visited=1
|
||||
# FOE
|
||||
|
||||
## make the installer show up
|
||||
#if [ -f /usr/share/applications/liveinst.desktop ]; then
|
||||
# # Show harddisk install in shell dash
|
||||
# sed -i -e 's/NoDisplay=true/NoDisplay=false/' /usr/share/applications/liveinst.desktop ""
|
||||
# # need to move it to anaconda.desktop to make shell happy
|
||||
# mv /usr/share/applications/liveinst.desktop /usr/share/applications/anaconda.desktop
|
||||
#
|
||||
# cat >> /usr/share/glib-2.0/schemas/org.gnome.shell.gschema.override << FOE
|
||||
# [org.gnome.shell]
|
||||
# favorite-apps=['firefox.desktop', 'org.gnome.Calendar.desktop', 'rhythmbox.desktop', 'org.gnome.Photos.desktop', 'org.gnome.Nautilus.desktop', 'anaconda.desktop']
|
||||
# FOE
|
||||
#
|
||||
# # Make the welcome screen show up
|
||||
# if [ -f /usr/share/anaconda/gnome/fedora-welcome.desktop ]; then
|
||||
# mkdir -p ~liveuser/.config/autostart
|
||||
# cp /usr/share/anaconda/gnome/fedora-welcome.desktop /usr/share/applications/
|
||||
# cp /usr/share/anaconda/gnome/fedora-welcome.desktop ~liveuser/.config/autostart/
|
||||
# fi
|
||||
#
|
||||
# # Disable GNOME welcome tour so it doesn't overlap with Fedora welcome screen
|
||||
# cat >> /usr/share/glib-2.0/schemas/org.gnome.shell.gschema.override << FOE
|
||||
# welcome-dialog-last-shown-version='4294967295'
|
||||
# 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
|
||||
# glib-compile-schemas /usr/share/glib-2.0/schemas
|
||||
|
||||
# set up auto-login
|
||||
cat > /etc/gdm/custom.conf << FOE
|
||||
[daemon]
|
||||
@ -373,7 +444,12 @@ AutomaticLoginEnable=True
|
||||
AutomaticLogin=liveuser
|
||||
FOE
|
||||
|
||||
# Make sure to set the right permissions and selinux contexts
|
||||
# Turn off PackageKit-command-not-found while uninstalled
|
||||
# if [ -f /etc/PackageKit/CommandNotFound.conf ]; then
|
||||
# sed -i -e 's/^SoftwareSourceSearch=true/SoftwareSourceSearch=false/' /etc/PackageKit/CommandNotFound.conf
|
||||
# fi
|
||||
|
||||
# make sure to set the right permissions and selinux contexts
|
||||
chown -R liveuser:liveuser /home/liveuser/
|
||||
restorecon -R /home/liveuser/
|
||||
|
||||
@ -392,23 +468,18 @@ anaconda-live
|
||||
chkconfig
|
||||
dejavu-sans-mono-fonts
|
||||
dracut-live
|
||||
efibootmgr
|
||||
gnome-backgrounds.noarch
|
||||
firefox
|
||||
glibc-all-langpacks
|
||||
gnome-backgrounds.noarch
|
||||
gnome-shell
|
||||
gnome-terminal
|
||||
grub2
|
||||
grub2-efi
|
||||
grub2-efi-*-cdboot
|
||||
grub2-efi-ia32
|
||||
initscripts
|
||||
kernel
|
||||
kernel-modules
|
||||
kernel-modules-extra
|
||||
mesa-dri-drivers
|
||||
mozilla-ublock-origin.noarch
|
||||
nano
|
||||
shim
|
||||
shim-ia32
|
||||
wpa_supplicant
|
||||
-device-mapper-multipath
|
||||
-fcoe-utils
|
||||
|
Reference in New Issue
Block a user