2013-01-25 03:51:40 +00:00
|
|
|
# fedora-livecd-soas.ks
|
|
|
|
#
|
|
|
|
# Description:
|
|
|
|
# - A Sugar environment that you can carry in your pocket
|
|
|
|
#
|
|
|
|
# Maintainers:
|
2023-10-13 12:33:40 +00:00
|
|
|
# - Chihurumnaya Ibiam <ibiam AT sugarlabs DOT org>
|
2021-02-18 17:59:24 +00:00
|
|
|
# - Alex Perez <aperez AT alexperez DOT com>
|
2017-01-18 11:52:53 +00:00
|
|
|
|
|
|
|
firewall --enabled --service=mdns,presence
|
2013-01-25 03:51:40 +00:00
|
|
|
|
|
|
|
%packages
|
2020-11-16 14:30:40 +00:00
|
|
|
# install env-group to resolve RhBug:1891500
|
|
|
|
@^sugar-desktop-environment
|
2020-02-19 00:01:04 +00:00
|
|
|
|
|
|
|
# == Core Sugar Platform ==
|
2020-03-22 19:54:01 +00:00
|
|
|
fedora-release-soas
|
2020-02-19 00:01:04 +00:00
|
|
|
|
|
|
|
# explicitly remove a bunch of extra stuff
|
|
|
|
-openbox
|
2013-01-25 03:51:40 +00:00
|
|
|
-@fonts
|
|
|
|
-@dial-up
|
|
|
|
-@multimedia
|
|
|
|
-@printing
|
|
|
|
-foomatic
|
|
|
|
-@gnome-desktop
|
|
|
|
-yp-tools
|
|
|
|
-ypbind
|
|
|
|
-rdate
|
|
|
|
-rdist
|
|
|
|
-icedtea-web
|
|
|
|
-firefox
|
|
|
|
-glx-utils
|
|
|
|
-nmap-ncat
|
|
|
|
-PackageKit
|
|
|
|
-eekboard-libs
|
2013-06-24 23:04:31 +00:00
|
|
|
-open-vm-tools*
|
2014-09-21 22:09:02 +00:00
|
|
|
-gfs2-utils
|
|
|
|
-abrt-cli
|
|
|
|
-ibus*
|
|
|
|
-hyperv-daemons
|
2020-02-19 00:01:04 +00:00
|
|
|
-sane-backends
|
|
|
|
-sane-backends-drivers-scanners
|
2020-09-13 16:54:50 +00:00
|
|
|
-dhcp-client
|
|
|
|
-gcc-gdb-plugin
|
|
|
|
-gcc
|
2013-01-25 03:51:40 +00:00
|
|
|
|
2014-12-02 00:25:46 +00:00
|
|
|
# Add some extra fonts
|
|
|
|
dejavu-sans-fonts
|
|
|
|
dejavu-sans-mono-fonts
|
|
|
|
madan-fonts
|
|
|
|
aajohan-comfortaa-fonts
|
|
|
|
sil-abyssinica-fonts
|
|
|
|
vlgothic-fonts
|
|
|
|
|
2013-01-25 03:51:40 +00:00
|
|
|
# Usefulness for DSL connections as per:
|
|
|
|
# http://bugs.sugarlabs.org/ticket/1951
|
|
|
|
rp-pppoe
|
|
|
|
|
2017-10-21 19:14:52 +00:00
|
|
|
# Useful for SoaS duplication from:
|
|
|
|
# http://bugs.sugarlabs.org/ticket/74
|
|
|
|
livecd-tools
|
|
|
|
|
2013-01-25 03:51:40 +00:00
|
|
|
# Get the Sugar boot screen
|
|
|
|
-plymouth-system-theme
|
|
|
|
-plymouth-theme-charge
|
|
|
|
|
2023-10-26 13:47:12 +00:00
|
|
|
# Install XFCE polkit
|
|
|
|
xfce-polkit
|
|
|
|
|
2017-01-21 11:11:44 +00:00
|
|
|
%end
|
|
|
|
|
2017-01-18 11:52:53 +00:00
|
|
|
%post
|
|
|
|
|
2019-06-09 11:37:37 +00:00
|
|
|
# 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
|
|
|
|
|
2017-01-18 11:52:53 +00:00
|
|
|
# Rebuild initrd for Sugar boot screen
|
|
|
|
KERNEL_VERSION=$(rpm -q kernel --qf '%{version}-%{release}.%{arch}\n')
|
|
|
|
/usr/sbin/plymouth-set-default-theme sugar
|
2023-02-02 18:15:35 +00:00
|
|
|
sed -i -r 's/(omit_dracutmodules\+\=.*) plymouth (.*)/\1 \2/' /etc/dracut.conf.d/99-liveos.conf
|
|
|
|
dracut --force-add plymouth -N -f /boot/initramfs-$KERNEL_VERSION.img $KERNEL_VERSION
|
2017-01-18 11:52:53 +00:00
|
|
|
|
|
|
|
# Note that running rpm recreates the rpm db files which aren't needed or wanted
|
|
|
|
rm -f /var/lib/rpm/__db*
|
|
|
|
|
|
|
|
cat > /etc/sysconfig/desktop <<EOF
|
|
|
|
PREFERRED=/usr/bin/sugar
|
|
|
|
DISPLAYMANAGER=/usr/sbin/lightdm
|
|
|
|
EOF
|
|
|
|
|
|
|
|
# set up lightdm autologin
|
|
|
|
sed -i 's/^#autologin-user=.*/autologin-user=liveuser/' /etc/lightdm/lightdm.conf
|
|
|
|
sed -i 's/^#autologin-user-timeout=.*/autologin-user-timeout=0/' /etc/lightdm/lightdm.conf
|
|
|
|
|
|
|
|
# Don't use the default system user (in SoaS liveuser) as nick name
|
|
|
|
# Disable the logout menu item in Sugar
|
|
|
|
# Enable Sugar power management
|
|
|
|
cat >/usr/share/glib-2.0/schemas/sugar.soas.gschema.override <<EOF
|
|
|
|
[org.sugarlabs.user]
|
|
|
|
default-nick='disabled'
|
|
|
|
|
|
|
|
[org.sugarlabs]
|
|
|
|
show-logout=false
|
|
|
|
|
|
|
|
[org.sugarlabs.power]
|
|
|
|
automatic=true
|
|
|
|
EOF
|
2021-02-18 17:59:24 +00:00
|
|
|
|
2018-09-14 01:52:12 +00:00
|
|
|
/usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
|
|
|
|
|
2013-01-25 03:51:40 +00:00
|
|
|
%end
|
2023-02-02 18:15:35 +00:00
|
|
|
|
|
|
|
%post --nochroot
|
|
|
|
|
|
|
|
for n in initramfs initrd; do
|
|
|
|
for img in "$LIVE_ROOT/images/pxeboot/$n"* ; do
|
|
|
|
[ -e "$img" ] && cp -a "$INSTALL_ROOT"/boot/initramfs-*.img "$img"
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
%end
|
|
|
|
|