pax_global_header00006660000000000000000000000064116113617510014514gustar00rootroot0000000000000052 comment=7e332cc290ab7d48f670650decb2eb829903b577 installer-feature-vm-altlinux-generic-0.1/000075500000000000000000000000001161136175100206705ustar00rootroot00000000000000installer-feature-vm-altlinux-generic-0.1/.gear-rules000064400000000000000000000000071161136175100227340ustar00rootroot00000000000000tar: . installer-feature-vm-altlinux-generic-0.1/05-vm-profile-altlinux-generic000075500000000000000000000026671161136175100264030ustar00rootroot00000000000000#!/bin/sh # see also http://lists.altlinux.org/pipermail/devel/2007-April/057886.html # NB: numbers in 512-byte sectors gb=$((1048576*2)) ram=$(($(sed -n '/^MemTotal:/ s/[^0-9]//pg' /proc/meminfo)*2)) # off the shelf base values root=$((4*$gb)) home=$((1*$gb)) var=$((2*$gb)) cat >/var/cache/alterator/vm-profile.scm <<_EOF_ ((generic (title . "Generic setup") (action . trivial) (actiondata ("swap" (size $ram . $(($ram*3/2))) (fsim . "SWAPFS") (methods plain)) ("/" (size $(($root/4)) . $(($root*3/2))) (fsim . "Ext2/3") (methods raid plain)) ("/home" (size $home . #t) (fsim . "Ext2/3") (methods raid plain)))) (workstation (title . "Workstation setup") (action . trivial) (actiondata ("swap" (size $(($ram*5/4)) . $(($ram*3/2))) (fsim . "SWAPFS") (methods plain)) ("/" (size $(($root*2)) . $(($root*4))) (fsim . "Ext2/3") (methods plain)) ("/home" (size $home . #t) (fsim . "Ext2/3") (methods raid plain)))) (server (title . "Server setup") (action . trivial) (actiondata ("swap" (size $ram . $(($ram*2))) (fsim . "SWAPFS") (methods raid plain)) ("/" (size $gb . $root) (fsim . "Ext2/3") (methods raid plain)) ("/usr" (size $gb . $(($root/2))) (fsim . "Ext2/3") (methods raid plain)) ("/home" (size $home . #t) (fsim . "Ext2/3") (methods raid plain)) ("/var" (size $var . #t) (fsim . "Ext2/3") (methods raid plain))))) _EOF_ installer-feature-vm-altlinux-generic-0.1/installer-feature-vm-altlinux-generic.spec000064400000000000000000000021461161136175100310650ustar00rootroot00000000000000Name: installer-feature-vm-altlinux-generic Version: 0.1 Release: alt1 Summary: alterator-vm profile tuning and filesystem layout hooks License: GPL Group: System/Configuration/Other Url: http://www.altlinux.org/Installer/beans Source: %name-%version.tar Packager: Michael Shigorin BuildArch: noarch %define hookdir %_datadir/install2 %description This package contains alterator-vm profile tuning and filesystem layout hooks for a generic ALT Linux based distribution. %package stage2 Summary: Installer stage2 alterator-vm profile tuning hook License: GPL Group: System/Configuration/Other Requires: installer-common-stage2 %description stage2 This package contains alterator-vm profile tuning hook for a generic ALT Linux based distribution's installer stage2. %prep %setup %install install -pDm755 05-vm-profile-altlinux-generic \ %buildroot%hookdir/initinstall.d/05-vm-profile-altlinux-generic %files stage2 %hookdir/initinstall.d/* %changelog * Tue Jul 19 2011 Michael Shigorin 0.1-alt1 - initial revision based on installer-feature-vm-server-light by Anton Farygin