Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save linux-modder/53a6af221b367155bfb63d437d42fa80 to your computer and use it in GitHub Desktop.
Save linux-modder/53a6af221b367155bfb63d437d42fa80 to your computer and use it in GitHub Desktop.
[linuxmodder@linwin ~]$ sudo livecd-creator -c fedora-live-workstation.ks -f Fedora-Workstation
Kickstart file must be provided
---------
---------
[linuxmodder@linwin ~]$ sudo livecd-creator -c /usr/share/spin-kickstarts/fedora-live-workstation.ks -f Fedora-Workstation --releasever=26
kickstart error: Failed to parse kickstart file 'file:///usr/share/spin-kickstarts/fedora-live-workstation.ks' : The following problem occurred on line 0 of the kickstart file:
Unable to open input kickstart file: Error opening file: [Errno 2] No such file or directory: 'fedora-live-base.ks'
[linuxmodder@linwin ~]$ cat /usr/share/spin-kickstarts/fedora-live-workstation.ks
# Maintained by the Fedora Workstation WG:
# http://fedoraproject.org/wiki/Workstation
# mailto:desktop@lists.fedoraproject.org
%include fedora-live-base.ks
%include fedora-workstation-packages.ks
%include snippets/packagekit-cached-metadata.ks
part / --size 6656
%post
cat >> /etc/rc.d/init.d/livesys << EOF
# disable updates plugin
cat >> /usr/share/glib-2.0/schemas/org.gnome.software.gschema.override << FOE
[org.gnome.software]
download-updates=false
FOE
# don't run gnome-initial-setup
mkdir ~liveuser/.config
touch ~liveuser/.config/gnome-initial-setup-done
# 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', 'evolution.desktop', 'rhythmbox.desktop', 'shotwell.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
# 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]
AutomaticLoginEnable=True
AutomaticLogin=liveuser
FOE
# 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/
EOF
---------
---------
[linuxmodder@linwin ~]$ ls -la /usr/share/spin-kickstarts/
total 248
drwxr-xr-x. 3 root root 4096 Jun 25 23:43 .
drwxr-xr-x. 312 root root 8192 Jun 25 23:44 ..
-rw-r--r--. 1 root root 1624 Feb 12 02:44 fedora-aos.ks
-rw-r--r--. 1 root root 1644 Feb 12 02:44 fedora-arm-base.ks
-rw-r--r--. 1 root root 333 Feb 12 02:44 fedora-arm-kde.ks
-rw-r--r--. 1 root root 300 Feb 12 02:44 fedora-arm-lxde.ks
-rw-r--r--. 1 root root 334 Feb 12 02:44 fedora-arm-mate.ks
-rw-r--r--. 1 root root 515 Feb 12 02:44 fedora-arm-minimal.ks
-rw-r--r--. 1 root root 614 Feb 12 02:44 fedora-arm-server.ks
-rw-r--r--. 1 root root 300 Feb 12 02:44 fedora-arm-soas.ks
-rw-r--r--. 1 root root 183 Feb 12 02:44 fedora-arm-workstation.ks
-rw-r--r--. 1 root root 68 Feb 12 02:44 fedora-arm-xbase.ks
-rw-r--r--. 1 root root 334 Feb 12 02:44 fedora-arm-xfce.ks
-rw-r--r--. 1 root root 4286 Feb 12 02:44 fedora-atomic.ks
-rw-r--r--. 1 root root 1619 Feb 12 02:44 fedora-atomic-vagrant.ks
-rw-r--r--. 1 root root 538 Feb 12 02:44 fedora-cinnamon-packages.ks
-rw-r--r--. 1 root root 1088 Feb 12 02:44 fedora-cloud-atomic-pxetolive.ks
-rw-r--r--. 1 root root 241 Feb 12 02:44 fedora-cloud-base-arm.ks
-rw-r--r--. 1 root root 9548 Feb 12 02:44 fedora-cloud-base.ks
-rw-r--r--. 1 root root 220 Feb 12 02:44 fedora-cloud-base-ppc.ks
-rw-r--r--. 1 root root 2872 Feb 12 02:44 fedora-cloud-base-vagrant.ks
-rw-r--r--. 1 root root 7088 Feb 12 02:44 fedora-cloud-bigdata.ks
-rw-r--r--. 1 root root 6645 Feb 12 02:44 fedora-cloud-experimental.ks
-rw-r--r--. 1 root root 198 Feb 12 02:44 fedora-docker-base-arm.ks
-rw-r--r--. 1 root root 2878 Feb 12 02:44 fedora-docker-base.ks
-rw-r--r--. 1 root root 161 Feb 12 02:44 fedora-docker-base-ppc.ks
-rw-r--r--. 1 root root 474 Feb 12 02:44 fedora-kde-packages.ks
-rw-r--r--. 1 root root 2165 Feb 12 02:44 fedora-live-astronomy_kde.ks
-rw-r--r--. 1 root root 9334 Feb 12 02:44 fedora-live-base.ks
-rw-r--r--. 1 root root 1401 Feb 12 02:44 fedora-live-cinnamon.ks
-rw-r--r--. 1 root root 2977 Feb 12 02:44 fedora-live-design_suite.ks
-rw-r--r--. 1 root root 3355 Feb 12 02:44 fedora-live-games.ks
-rw-r--r--. 1 root root 3583 Feb 12 02:44 fedora-live-jam_kde.ks
-rw-r--r--. 1 root root 2536 Feb 12 02:44 fedora-live-kde-base.ks
-rw-r--r--. 1 root root 1845 Feb 12 02:44 fedora-live-kde.ks
-rw-r--r--. 1 root root 1615 Feb 12 02:44 fedora-live-lxde.ks
-rw-r--r--. 1 root root 2269 Feb 12 02:44 fedora-live-mate_compiz.ks
-rw-r--r--. 1 root root 318 Feb 12 02:44 fedora-live-minimization.ks
-rw-r--r--. 1 root root 2998 Feb 12 02:44 fedora-live-robotics.ks
-rw-r--r--. 1 root root 2814 Feb 12 02:44 fedora-live-scientific_kde.ks
-rw-r--r--. 1 root root 3651 Feb 12 02:44 fedora-live-security.ks
-rw-r--r--. 1 root root 3623 Feb 12 02:44 fedora-live-soas.ks
-rw-r--r--. 1 root root 2239 Feb 12 02:44 fedora-live-workstation.ks
-rw-r--r--. 1 root root 2195 Feb 12 02:44 fedora-live-xfce.ks
-rw-r--r--. 1 root root 1305 Feb 12 02:44 fedora-lxde-packages.ks
-rw-r--r--. 1 root root 952 Feb 12 02:44 fedora-mate-packages.ks
-rw-r--r--. 1 root root 291 Feb 12 02:44 fedora-repo.ks
-rw-r--r--. 1 root root 470 Feb 12 02:44 fedora-repo-not-rawhide.ks
-rw-r--r--. 1 root root 192 Feb 12 02:44 fedora-repo-rawhide.ks
-rw-r--r--. 1 root root 1607 Feb 12 02:44 fedora-soas-packages.ks
-rw-r--r--. 1 root root 530 Feb 12 02:44 fedora-workstation-packages.ks
-rw-r--r--. 1 root root 1050 Feb 12 02:44 fedora-xfce-packages.ks
drwxr-xr-x. 2 root root 43 Jun 25 23:43 snippets
[linuxmodder@linwin ~]$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment