pax_global_header00006660000000000000000000000064116001432620014505gustar00rootroot0000000000000052 comment=64a3a1935762cde2e955cb10d36ac569e8362bf7 installer-feature-vm-ofs-0.3/000075500000000000000000000000001160014326200162005ustar00rootroot00000000000000installer-feature-vm-ofs-0.3/.gear-rules000064400000000000000000000000071160014326200202440ustar00rootroot00000000000000tar: . installer-feature-vm-ofs-0.3/01-move-fs-ofs000075500000000000000000000005051160014326200205050ustar00rootroot00000000000000#!/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 } bindmount /srv /var/srv bindmount /home /srv/home installer-feature-vm-ofs-0.3/05-vm-profile-ofs000075500000000000000000000011011160014326200212060ustar00rootroot00000000000000#!/bin/sh mem=$(($(sed -n '/^MemTotal:/ s/[^0-9]//pg' /proc/meminfo)*2*2)) root=$((4*1024*1024*2)) var=$((2*1024*1024*2)) vz=$var cat >/var/cache/alterator/vm-profile.scm <<_EOF_ ((server (title . "Setup for server") (action . trivial) (actiondata ("swap" (size . $mem) (fsim . "SWAPFS") (methods raid plain)) ("/" (size . $root ) (fsim . "Ext2/3") (methods raid plain)) ("/var" (size $var . #t) (fsim . "Ext2/3") (methods raid plain)) ("/var/lib/vz" (size $vz . #t) (fsim . "Ext2/3") (methods raid plain)) ) ) ) _EOF_ installer-feature-vm-ofs-0.3/installer-feature-fs-ofs.spec000064400000000000000000000031301160014326200236720ustar00rootroot00000000000000Name: installer-feature-vm-ofs Version: 0.3 Release: alt1 Summary: Installer alterator-vm profile tuning and filesystem layout hooks License: GPL Group: System/Configuration/Other Url: http://www.altlinux.org/Installer/beans BuildArch: noarch Source: %name-%version.tar %description This package contains alterator-vm profile tuning and filesystem layout hooks for Office Server. %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 Office Server installer stage2. %package stage3 Summary: Installer stage3 filesystem layout hook License: GPL Group: System/Configuration/Other Requires: installer-common-stage3 %description stage3 This package contains filesystem layout hooks for Office Server installer stage3. %prep %setup %install %define hookdir %_datadir/install2 mkdir -p %buildroot%hookdir/{initinstall,preinstall}.d install -pm755 05-* %buildroot%hookdir/initinstall.d/ install -pm755 01-* %buildroot%hookdir/preinstall.d/ %files stage2 %hookdir/initinstall.d/* %files stage3 %hookdir/preinstall.d/* %changelog * Tue Jun 21 2011 Dmitry V. Levin 0.3-alt1 - 01-move-fs-ofs: Changed symlinking to bindmounting (untested; closes: #25786). * Mon Jun 15 2009 Dmitry V. Levin 0.2-alt1 - 05-vm-profile-ofs: Use feature implemented in alterator-vm-0.4.1-alt8. * Wed Apr 01 2009 Dmitry V. Levin 0.1-alt1 - Initial revision based on installer-distro-office-server hooks.