pax_global_header00006660000000000000000000000064122771457440014527gustar00rootroot0000000000000052 comment=2847f16492c4826fb0c22a67b807933f6cce576f installer-feature-simply-livecd-0.8.7/000075500000000000000000000000001227714574400177465ustar00rootroot00000000000000installer-feature-simply-livecd-0.8.7/.gear/000075500000000000000000000000001227714574400207425ustar00rootroot00000000000000installer-feature-simply-livecd-0.8.7/.gear/rules000064400000000000000000000000061227714574400220130ustar00rootroot00000000000000tar:. installer-feature-simply-livecd-0.8.7/alterator-menu/000075500000000000000000000000001227714574400227055ustar00rootroot00000000000000installer-feature-simply-livecd-0.8.7/alterator-menu/module-expert-list000064400000000000000000000000611227714574400263700ustar00rootroot00000000000000control sslkey grub net-iptables net-dnat net-bl installer-feature-simply-livecd-0.8.7/alterator-menu/module-skip-list000064400000000000000000000000051227714574400260250ustar00rootroot00000000000000logs installer-feature-simply-livecd-0.8.7/installer-feature-simply-livecd.spec000064400000000000000000000123541227714574400270340ustar00rootroot00000000000000Name: installer-feature-simply-livecd Version: 0.8.7 Release: alt1 Summary: LiveCD install hooks for Simply Linux. License: GPL Group: System/Configuration/Other Url: http://www.altlinux.org/Installer/beans BuildArch: noarch Source: %name-%version.tar Requires: alterator-livecd >= 0.5 Conflicts: installer-common-stage2 Conflicts: livecd-install < 0.7-alt1 Provides: installer-features-simply-livecd Obsoletes: installer-features-simply-livecd < 0.3 Requires: libshell # Run installer features while install from LiveCD. Requires: livecd-installer-features # Installer fearures for Simply Linux. Requires: installer-feature-samba-usershares-stage2 Requires: installer-feature-desktop-other-fs-stage2 Requires: installer-feature-sudo-enable-by-default-stage2 Requires: installer-feature-nfs-client-stage3 Requires: installer-feature-online-repo Requires: installer-feature-bell-off-stage3 Requires: installer-feature-symlinks-from-sbin %description LiveCD install hooks for Simply Linux. %prep %setup %install %define init_hookdir %_libexecdir/alterator/hooks/livecd-initinstall.d %define pre_hookdir %_libexecdir/alterator/hooks/livecd-preinstall.d %define post_hookdir %_libexecdir/alterator/hooks/livecd-postinstall.d mkdir -p %buildroot%_datadir/livecd-install/alterator-menu/ mkdir -p %buildroot%init_hookdir mkdir -p %buildroot%pre_hookdir mkdir -p %buildroot%post_hookdir install -pm755 livecd-initinstall.d/* %buildroot%init_hookdir/ install -pm755 livecd-preinstall.d/* %buildroot%pre_hookdir/ install -pm755 livecd-postinstall.d/* %buildroot%post_hookdir/ cp -ar alterator-menu/ %buildroot%_datadir/livecd-install %files %init_hookdir/* %pre_hookdir/* %post_hookdir/* %_datadir/livecd-install/ %changelog * Thu Feb 13 2014 Mikhail Efremov 0.8.7-alt1 - Disable cups.socket. * Fri Jun 21 2013 Mikhail Efremov 0.8.6-alt2 - Drop installer-feature-cpufreq-stage3. * Mon Jun 10 2013 Mikhail Efremov 0.8.6-alt1 - Enable cpufreq-simple.service. * Fri May 31 2013 Mikhail Efremov 0.8.5-alt1 - Add module-expert-list (by cas@). * Mon May 27 2013 Mikhail Efremov 0.8.4-alt1 - Drop 'removable' initinstall hook. - Add installer-feature-symlinks-from-sbin. * Thu Apr 18 2013 Mikhail Efremov 0.8.3-alt1 - Add 'removable' initinstall hook. * Tue Apr 16 2013 Mikhail Efremov 0.8.2-alt1 - lightdm: Set icon theme SimpleSL. - Hide alterator-logs in the acc. * Wed Mar 27 2013 Mikhail Efremov 0.8.1-alt1 - Explicitly enable prefdm.service. - Disable krb5kdc service. - Change lightdm theme to Clearlooks-Phenix. - Added setup-journald postinstall hook. * Thu Feb 28 2013 Mikhail Efremov 0.8.0-alt1 - Enable ntpd.service. - Enable more services. - Enable nmb and smb services. - services postinstall hook: Use systemctl. - Replace gdm-theme with lightdm-theme preinstall hook. * Thu Feb 14 2013 Mikhail Efremov 0.7.7-alt2 - Drop installer-feature-hdd-pm-disable-stage3. * Thu Jan 10 2013 Mikhail Efremov 0.7.7-alt1 - Drop obsoleted installer features. - Drop disable-whatis hook. * Fri Dec 23 2011 Mikhail Efremov 0.7.6-alt4 - Add disable-whatis hook. - Drop updatedb.sh. * Thu Nov 24 2011 Mikhail Efremov 0.7.6-alt3 - Use installer-feature-hdd-pm-disable-stage3. * Thu Nov 03 2011 Mikhail Efremov 0.7.6-alt2 - Use installer-feature-cpufreq-stage3. * Thu Sep 22 2011 Mikhail Efremov 0.7.6-alt1 - services: Turn on crond, anacron and dnsmasq. - Use own setup-resume install hook. - Use installer-feature-bell-off-stage3. - gdm: Set SoundOnLogin=false. * Thu Aug 25 2011 Mikhail Efremov 0.7.5-alt1 - setup-user-groups hook: Add vboxusers group. * Mon Aug 22 2011 Mikhail Efremov 0.7.4-alt1 - gdm: Simplify greeter. * Tue Aug 16 2011 Mikhail Efremov 0.7.3-alt1 - Install all hooks. - Set gdm theme 'simply' again. * Wed Aug 10 2011 Mikhail Efremov 0.7.2-alt1 - Return gdm theme 'simple'. * Wed Aug 10 2011 Mikhail Efremov 0.7.1-alt1 - Change gdm-theme: simple -> simply. - Rename hook: gdm-simple -> gdm-theme. * Thu Aug 04 2011 Mikhail Efremov 0.7.0-alt1 - Add vm-profile hook. - Add setup-user-groups hook. - Use installer-feature-online-repo instead of own hook. - Add dependences on installer-features for Simply. * Wed Jul 20 2011 Mikhail Efremov 0.6.2-alt1 - Add updatedb hook. - Kill polkit agent before install. * Mon Jun 20 2011 Mikhail Efremov 0.6.1-alt1 - Map hostname to 127.0.0.1. * Thu Jun 16 2011 Mikhail Efremov 0.6-alt1 - Drop remove-installer-pkgs hook. * Mon Jun 06 2011 Mikhail Efremov 0.5-alt1 - Use digital prefix for hooks. - Add remove-installer-pkgs hook. * Thu Jun 02 2011 Mikhail Efremov 0.4-alt1 - livecd-postinstall.d -> livecd-preinstall.d. * Fri May 27 2011 Mikhail Efremov 0.3-alt1 - Rename package. - Disable zram-swap. * Tue May 24 2011 Mikhail Efremov 0.2-alt1 - Add online-repo hook. * Fri May 20 2011 Mikhail Efremov 0.1-alt1 - Initial build installer-feature-simply-livecd-0.8.7/livecd-initinstall.d/000075500000000000000000000000001227714574400237665ustar00rootroot00000000000000installer-feature-simply-livecd-0.8.7/livecd-initinstall.d/05-vm-profile.sh000075500000000000000000000025401227714574400266300ustar00rootroot00000000000000#!/bin/sh mem=$[`grep MemTotal /proc/meminfo | sed 's/[^0-9]//g'`*4] max_disk=$(cat /sys/block/[hsv]d*/size | sort -n -r| head -1) [ $mem -ge 32948992 ] && mem=32948992 #less them 10G if [ "$max_disk" -le 20000000 ] ; then mem=$[$mem/2] cat > /var/cache/alterator/vm-profile.scm << _EOF_ ((workstation (title . "Setup for workstation") (action . trivial) (actiondata ("swap" (size $mem . $mem) (fsim . "SWAPFS") (methods plain)) ("/" (size 6000000 . #t ) (fsim . "Ext2/3") (methods plain)))) ) _EOF_ #less them 22G elif [ "$max_disk" -le 45000000 ] ; then mem=$[$mem/2] cat > /var/cache/alterator/vm-profile.scm << _EOF_ ((workstation (title . "Setup for workstation") (action . trivial) (actiondata ("swap" (size $mem . $mem) (fsim . "SWAPFS") (methods plain)) ("/" (size 12000000 . 12000000 ) (fsim . "Ext2/3") (methods plain)) ("/home" (size 4194304 . #t) (fsim . "Ext2/3") (methods plain)))) ) _EOF_ else cat > /var/cache/alterator/vm-profile.scm << _EOF_ ((workstation (title . "Setup for workstation") (action . trivial) (actiondata ("swap" (size $mem . $mem) (fsim . "SWAPFS") (methods plain)) ("/" (size 22000000 . 22000000 ) (fsim . "Ext2/3") (methods plain)) ("/home" (size 4194304 . #t) (fsim . "Ext2/3") (methods plain)))) ) _EOF_ fi installer-feature-simply-livecd-0.8.7/livecd-initinstall.d/60-kill-polkit-agent.sh000064400000000000000000000001731227714574400300750ustar00rootroot00000000000000#!/bin/sh # Kill polkit agent to avoid annoying message # during install. killall polkit-gnome-authentication-agent-1 ||: installer-feature-simply-livecd-0.8.7/livecd-postinstall.d/000075500000000000000000000000001227714574400240105ustar00rootroot00000000000000installer-feature-simply-livecd-0.8.7/livecd-postinstall.d/20-alterator-menu000075500000000000000000000001561227714574400271160ustar00rootroot00000000000000#!/bin/sh . livecd-functions cp -fa /usr/share/livecd-install/alterator-menu/* $destdir/etc/alterator/menu/ installer-feature-simply-livecd-0.8.7/livecd-postinstall.d/60-setup-journald000075500000000000000000000002371227714574400271370ustar00rootroot00000000000000#!/bin/sh -efu . livecd-functions # Create log directory for journald. # Otherwise it will use tmpfs in the /run/log only. mkdir -p $destdir/var/log/journal installer-feature-simply-livecd-0.8.7/livecd-postinstall.d/90-services.sh000075500000000000000000000017441227714574400264260ustar00rootroot00000000000000#!/bin/sh -eu . livecd-functions exec_chroot systemctl --no-reload enable crond.service ||: exec_chroot systemctl --no-reload enable anacron.service ||: exec_chroot systemctl --no-reload enable dnsmasq.service ||: exec_chroot systemctl --no-reload enable smb.service ||: exec_chroot systemctl --no-reload enable nmb.service ||: exec_chroot systemctl --no-reload enable avahi-daemon.service ||: exec_chroot systemctl --no-reload enable bluetoothd.service ||: exec_chroot systemctl --no-reload disable krb5kdc.service ||: exec_chroot systemctl --no-reload enable lvm2-monitor.service ||: exec_chroot systemctl --no-reload enable ntpd.service ||: exec_chroot systemctl --no-reload enable prefdm.service ||: exec_chroot systemctl --no-reload enable cpufreq-simple.service ||: # cups.service enables cups.socket too. exec_chroot systemctl --no-reload enable cups.service ||: # So disable cups.socket and Let cups to listen ports by itself. exec_chroot systemctl --no-reload disable cups.socket ||: installer-feature-simply-livecd-0.8.7/livecd-preinstall.d/000075500000000000000000000000001227714574400236115ustar00rootroot00000000000000installer-feature-simply-livecd-0.8.7/livecd-preinstall.d/70-lightdm-theme.sh000075500000000000000000000005211227714574400271220ustar00rootroot00000000000000#!/bin/sh -efu . livecd-functions conf=/etc/lightdm/lightdm-gtk-greeter.conf sed -r -i 's;^#?logo=.*$;logo=/usr/share/design/current/icons/large/slinux.png;' "$destdir/$conf" sed -r -i 's;^#?theme-name=.*$;theme-name=Clearlooks-Phenix;' "$destdir/$conf" sed -r -i 's;^#?icon-theme-name=.*$;icon-theme-name=SimpleSL;' "$destdir/$conf" installer-feature-simply-livecd-0.8.7/livecd-preinstall.d/70-setup-resume000075500000000000000000000005331227714574400264220ustar00rootroot00000000000000#!/bin/sh -fu # get first suitable swap, configure resume (if any) . livecd-functions blkid | grep -v '^/dev.*/zram' | grep swap | head -1 | sed 's/.*UUID="\(.*\)".*/\1/' | sed 's/".*//' \ | ( read UUID ||: [ -z "$UUID" ] || subst "s,^GRUB_CMDLINE_LINUX_DEFAULT=',&resume=/dev/disk/by-uuid/$UUID ," \ "$destdir"/etc/sysconfig/grub2 ||: ) installer-feature-simply-livecd-0.8.7/livecd-preinstall.d/80-setup-user-groups000075500000000000000000000007611227714574400274210ustar00rootroot00000000000000#!/bin/sh -efu . livecd-functions GROUPS_FILE='/usr/share/install3/default-groups' DEFAULT_GROUPS='wheel cdwriter cdrom audio proc radio camera floppy xgrp scanner uucp video vboxusers' # Create group file for alterator-users if [ -s "$destdir/$GROUPS_FILE" ]; then for group in $DEFAULT_GROUPS; do grep -qsw "$group" "$destdir/$GROUPS_FILE" || echo "$group" >>"$destdir/$GROUPS_FILE" done else mkdir -p "$destdir/${GROUPS_FILE%/*}" echo "$DEFAULT_GROUPS" >"$destdir/$GROUPS_FILE" fi installer-feature-simply-livecd-0.8.7/livecd-preinstall.d/80-zram-swap-off.sh000075500000000000000000000001031227714574400270600ustar00rootroot00000000000000#!/bin/sh . livecd-functions exec_chroot chkconfig zram-swap off installer-feature-simply-livecd-0.8.7/livecd-preinstall.d/96-hostname-resolv.sh000075500000000000000000000006461227714574400275400ustar00rootroot00000000000000#!/bin/sh -eu . livecd-functions . shell-config hostname="$(shell_config_get "$destdir/etc/sysconfig/network" HOSTNAME)" [ -z "$hostname" -o \ "$hostname" = "localhost" -o "$hostname" = 'localhost.localdomain' ] && exit 0 domain="${hostname%%.*}" [ "$domain" != "$hostname" ] || domain= grep -qs "^[^#]*\<$hostname\>" "$destdir/etc/hosts" || printf '127.0.0.1\t%s %s\n' "$hostname" "$domain" >>"$destdir/etc/hosts"