From: Dario Faggioli Date: Tue, 10 Jun 2014 01:51:58 +0000 (+0200) Subject: Initial commit X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;p=people%2Fdariof%2Ffedora-live-xen.git Initial commit Basic live image, tested for Fedora 20 live usage (no installation). Signed-off-by: Dario Faggioli --- a6adf9a2d7801ef81a8dc3fb4d95f0e51db7c245 diff --git a/fedora-live-xen.ks b/fedora-live-xen.ks new file mode 100644 index 0000000..58f94b1 --- /dev/null +++ b/fedora-live-xen.ks @@ -0,0 +1,142 @@ +# Maintained by Dario Faggioli, Citrix Inc. +# mailto:dario.faggioli@citrix.com + +%include fedora-live-base.ks +%include fedora-desktop-packages.ks + +# Add the virt-preview repository +repo --name=virt-preview --baseurl=http://fedorapeople.org/groups/virt/virt-preview/fedora-$releasever/$basearch +# What about updates-testing reository? Well, why not! +repo --name=updates-testing --mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-testing-f$releasever&arch=$basearch +# And what about rawhide? Mmm... better not to go that far... +#%include fedora-repo-rawhide.ks + +# Language and timezone +keyboard 'us' +timezone Europe/London --isUtc +# Firewall configuration +firewall --enabled --ftp --ssh --http --service=mdns +# Networking and system services +services --enabled="NetworkManager,sshd" +# SELinux configuration +selinux --permissive +# Disk partitioning information +part / --fstype="ext4" --size 8192 + +%packages +# Basics +vim-X11 +vim-enhanced +xemacs +@admin-tools +@system-tools +hwloc +numactl +tigervnc +# Virt is all this is about!! +@virtualization +virt-top +virt-viewer +virt-what +libguestfs-tools +guestfs-browser +# Explicitly include Xen components +xen* +xen-devel +libvirt-daemon-xen +-gnome-boxes + +# Get rid of a few heavy stuff +-@libreoffice +-@printing +-@Office/Productivity +-evolution* +-brasero* +-cheese +-colord +-colord-gtk +-gnome-backgrounds +-gnome-color-manager +-gnome-clocks +-gnome-contacts +-gnome-dictionary +-gnome-documents +-gnome-font-viewer +-gnome-getting-started-docs +-gnome-icon-theme-extras +-gnome-photos +-gucharmap +-orca +-realmd +-rhythmbox +-sane-backends* +-shotwell +-simple-scan +-system-config-* +-tmpwatch +-transmission-gtk +-vinagre +-yum-langpacks + +%end # end-packages + +%post +cat >> /etc/rc.d/init.d/livesys << EOF + +# don't run gnome-initial-setup +mkdir ~liveuser/.config +touch ~liveuser/.config/gnome-initial-setup-done + +# Disable updates plugin +cat >> /usr/share/glib-2.0/schemas/org.gnome.settings-daemon.plugins.updates.gschema.override << FOE +[org.gnome.settings-daemon.plugins.updates] +active=false +FOE + +# Disable screen blanking: there's no need for it here! +cat << FOE >> /usr/share/glib-2.0/schemas/org.gnome.desktop.session.gschema.override +[org.gnome.desktop.session] +idle-delay=0 +FOE + +# Show an installer icon in GNOME Shell +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 +fi + +# Shell favourites +cat >> /usr/share/glib-2.0/schemas/org.gnome.shell.gschema.override << FOE +[org.gnome.shell] +favorite-apps=['firefox.desktop', 'nautilus.desktop', 'virt-manager.desktop', 'gnome-terminal.desktop', 'anaconda.desktop'] +FOE + +# Rebuild schema with all the overrides +glib-compile-schemas /usr/share/glib-2.0/schemas + +# Auto-login +cat > /etc/gdm/custom.conf << FOE +[daemon] +AutomaticLoginEnable=True +AutomaticLogin=liveuser +FOE + +# Permissions and selinux contexts +chown -R liveuser:liveuser /home/liveuser/ +restorecon -R /home/liveuser/ + +EOF + +%end #end-post + +%post --nochroot +echo "Fixup the bootloader..." +cp $INSTALL_ROOT/boot/xen.gz $LIVE_ROOT/isolinux +sed -i 's/kernel vmlinuz0/kernel mboot.c32/' $LIVE_ROOT/isolinux/isolinux.cfg +sed -i 's/append initrd=initrd0.img/append xen.gz com1=115200,8n1 console=com1,vga --- vmlinuz0 xencons=hvc console=hvc0 console=tty0/' $LIVE_ROOT/isolinux/isolinux.cfg +sed -i '/append/s|$| --- initrd0.img|' $LIVE_ROOT/isolinux/isolinux.cfg + +%end #end-post 4 bootloader fixup +