From fce0982e9dca8a0a56461476ff321649af637edf Mon Sep 17 00:00:00 2001 From: "pbrobinson@fedoraproject.org" Date: Wed, 18 Jan 2017 11:52:53 +0000 Subject: [PATCH] SoaS: move components that should be run for Live and ARM images to common Signed-off-by: Peter Robinson --- fedora-live-soas.ks | 78 ---------------------------------------- fedora-soas-common.ks | 82 +++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 80 insertions(+), 80 deletions(-) diff --git a/fedora-live-soas.ks b/fedora-live-soas.ks index 50ff1ae..19c4099 100644 --- a/fedora-live-soas.ks +++ b/fedora-live-soas.ks @@ -12,86 +12,8 @@ %include fedora-live-minimization.ks %include fedora-soas-common.ks -firewall --enabled --service=mdns,presence - %post -# Rebuild initrd for Sugar boot screen -KERNEL_VERSION=$(rpm -q kernel --qf '%{version}-%{release}.%{arch}\n') -/usr/sbin/plymouth-set-default-theme sugar -/sbin/dracut -f /boot/initramfs-$KERNEL_VERSION.img $KERNEL_VERSION - -# Note that running rpm recreates the rpm db files which aren't needed or wanted -rm -f /var/lib/rpm/__db* - -# Get proper release naming in the control panel -cat >> /boot/olpc_build << EOF -Sugar on a Stick -EOF -cat /etc/fedora-release >> /boot/olpc_build - -# Add our activities to the favorites -cat > /usr/share/sugar/data/activities.defaults << EOF -org.laptop.WebActivity -org.laptop.HelpActivity -org.laptop.Chat -org.laptop.sugar.ReadActivity -org.laptop.sugar.GetBooksActivity -org.laptop.AbiWordActivity -org.laptop.TurtleArtActivity -org.laptop.Calculate -org.laptop.Clock -org.laptop.ImageViewerActivity -org.laptop.Memorize -org.laptop.physics -org.laptop.Pippy -org.laptop.RecordActivity -org.laptop.Oficina -org.laptop.StopWatchActivity -org.laptop.community.Finance -org.laptop.community.TypingTurtle -org.laptop.sugar.Jukebox -org.laptop.Words -org.eq.FotoToon -org.gnome.Labyrinth -com.laptop.Ruler -org.sugarlabs.AbacusActivity -org.sugarlabs.IRC -org.sugarlabs.InfoSlicer -org.sugarlabs.PortfolioActivity -org.sugarlabs.StoryActivity -org.sugarlabs.VisualMatchActivity -com.garycmartin.Moon -mulawa.Countries -tv.alterna.Clock -vu.lux.olpc.Maze -vu.lux.olpc.Speak -EOF - -cat > /etc/sysconfig/desktop </usr/share/glib-2.0/schemas/sugar.soas.gschema.override <> /etc/rc.d/init.d/livesys << EOF # set up lightdm autologin sed -i 's/^#autologin-user=.*/autologin-user=liveuser/' /etc/lightdm/lightdm.conf diff --git a/fedora-soas-common.ks b/fedora-soas-common.ks index 78b795e..e848ef5 100644 --- a/fedora-soas-common.ks +++ b/fedora-soas-common.ks @@ -5,8 +5,8 @@ # # Maintainers: # - Peter Robinson -# - Sebastian Dziallas -# - Mel Chua + +firewall --enabled --service=mdns,presence %packages -@fonts @@ -82,4 +82,82 @@ rp-pppoe -plymouth-theme-charge sugar-logos +%post + +# Rebuild initrd for Sugar boot screen +KERNEL_VERSION=$(rpm -q kernel --qf '%{version}-%{release}.%{arch}\n') +/usr/sbin/plymouth-set-default-theme sugar +/sbin/dracut -f /boot/initramfs-$KERNEL_VERSION.img $KERNEL_VERSION + +# Note that running rpm recreates the rpm db files which aren't needed or wanted +rm -f /var/lib/rpm/__db* + +# Get proper release naming in the control panel +cat >> /boot/olpc_build << EOF +Sugar on a Stick +EOF +cat /etc/fedora-release >> /boot/olpc_build + +# Add our activities to the favorites +cat > /usr/share/sugar/data/activities.defaults << EOF +org.laptop.WebActivity +org.laptop.HelpActivity +org.laptop.Chat +org.laptop.sugar.ReadActivity +org.laptop.sugar.GetBooksActivity +org.laptop.AbiWordActivity +org.laptop.TurtleArtActivity +org.laptop.Calculate +org.laptop.Clock +org.laptop.ImageViewerActivity +org.laptop.Memorize +org.laptop.physics +org.laptop.Pippy +org.laptop.RecordActivity +org.laptop.Oficina +org.laptop.StopWatchActivity +org.laptop.community.Finance +org.laptop.community.TypingTurtle +org.laptop.sugar.Jukebox +org.laptop.Words +org.eq.FotoToon +org.gnome.Labyrinth +com.laptop.Ruler +org.sugarlabs.AbacusActivity +org.sugarlabs.IRC +org.sugarlabs.InfoSlicer +org.sugarlabs.PortfolioActivity +org.sugarlabs.StoryActivity +org.sugarlabs.VisualMatchActivity +com.garycmartin.Moon +mulawa.Countries +tv.alterna.Clock +vu.lux.olpc.Maze +vu.lux.olpc.Speak +EOF + +cat > /etc/sysconfig/desktop </usr/share/glib-2.0/schemas/sugar.soas.gschema.override <