pax_global_header00006660000000000000000000000064116405564710014523gustar00rootroot0000000000000052 comment=89f8b91f6ed52b95a0ba646a792953ccd56a35ea volumes-profile-centaurus-0.8/000075500000000000000000000000001164055647100165275ustar00rootroot00000000000000volumes-profile-centaurus-0.8/.gear-rules000064400000000000000000000000071164055647100205730ustar00rootroot00000000000000tar: . volumes-profile-centaurus-0.8/10-vm-profile.sh000075500000000000000000000017631164055647100213730ustar00rootroot00000000000000#!/bin/sh mem=$[`(grep MemTotal /proc/meminfo || echo 524288)| sed 's/[^0-9]//g'`*4] [ $mem -ge 32948992 ] && mem=32948992 # Don't use raids under virtualization if lspci -n | grep -qE '(1013:00b8)|(80ee:beef)|(14ad:0405)' ; then server_methods='plain' mem=$[$mem/2] else server_methods='raid plain' fi cat > /var/cache/alterator/vm-profile.scm << _EOF_ ((server (title . "Setup for server") (action . trivial) (actiondata ("swap" (size . $(($mem*2))) (fsim . "SWAPFS") (methods $server_methods)) ("/" (size . 15000000 ) (fsim . "Ext2/3") (methods $server_methods)) ("/var" (size 4194304 . #t) (fsim . "Ext2/3") (methods $server_methods)))) (workstation (title . "Setup for workstation") (action . trivial) (actiondata ("swap" (size . $mem) (fsim . "SWAPFS") (methods plain)) ("/" (size 22000000 . 22000000 ) (fsim . "Ext2/3") (methods plain)) ("/home" (size 4194304 . #t) (fsim . "Ext2/3") (methods plain)))) ) _EOF_ volumes-profile-centaurus-0.8/20-move-fs.sh000075500000000000000000000006221164055647100206610ustar00rootroot00000000000000#!/bin/sh -efu a= . install2-init-functions bindmount() { local src dst src="$1"; shift dst="$1"; shift if ! mountpoint -q $destdir$src; then mkdir -p $destdir$dst mount --bind $destdir$dst $destdir$src echo "$dst $src bind bind 0 0" >> $destdir/etc/fstab fi } if grep -q '/evms/profiles/server.*action apply' /tmp/wizard.log ; then bindmount /srv /var/srv bindmount /home /srv/home fi volumes-profile-centaurus-0.8/volumes-profile.spec000064400000000000000000000031611164055647100225340ustar00rootroot00000000000000Name: volumes-profile-centaurus Version: 0.8 Release: alt1 Summary: Volumes description for Centaurus distribution License: GPL Group: System/Configuration/Other Url: http://www.altlinux.org/Installer/beans BuildArch: noarch Source: %name-%version.tar %description Volumes description for Centaurus distribution %prep %setup %install %define hook1dir %_datadir/install2/initinstall.d %define hook2dir %_datadir/install2/preinstall.d mkdir -p %buildroot%hook1dir install -pm755 10-*.sh %buildroot%hook1dir/ mkdir -p %buildroot%hook2dir install -pm755 20-*.sh %buildroot%hook2dir/ %files %hook1dir/* %hook2dir/* %changelog * Wed Sep 28 2011 Anton V. Boyarshinov 0.8-alt1 - make usable inb hasher (while livecd building) * Tue Sep 27 2011 Anton V. Boyarshinov 0.7-alt2 - more / space for server * Wed Aug 24 2011 Anton V. Boyarshinov 0.7-alt1 - bind directories only if server autopartitioning have used * Thu Aug 11 2011 Anton V. Boyarshinov 0.6-alt1 - bind directories * Wed Aug 10 2011 Anton V. Boyarshinov 0.5-alt1 - don't move directories * Tue Feb 08 2011 Anton V. Boyarshinov 0.4-alt2 - spaces fixed * Mon Feb 07 2011 Anton V. Boyarshinov 0.4-alt1 - don't create raids when virtualized * Thu Jan 27 2011 Anton V. Boyarshinov 0.3-alt1 - not more them 16Gb of swap * Fri Oct 22 2010 Anton V. Boyarshinov 0.2-alt1 - / size for server increased * Tue Oct 19 2010 Anton V. Boyarshinov 0.1-alt1 - initital build