Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37790385
en ru br
ALT Linux repos
S:0.11.0-alt1

Group :: System/Configuration/Other
RPM: volumes-profile-kdesktop

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

volumes-profile-kdesktop-0.6.1/000075500000000000000000000000001175472703300164775ustar00rootroot00000000000000volumes-profile-kdesktop-0.6.1/10-vm-profile.sh000075500000000000000000000012301175472703300213300ustar00rootroot00000000000000#!/bin/sh

mem=$[`grep MemTotal /proc/meminfo | 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_
(
(workstation
(title . "Setup for workstation")
(action . trivial)
(actiondata ("swap" (size . $mem) (fsim . "SWAPFS") (methods plain))
("/" (size 33000000 . 44000000 ) (fsim . "Ext2/3") (methods plain))
("/home" (size 4194304 . #t) (fsim . "Ext2/3") (methods plain))))
)
_EOF_
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin