From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Fri, 4 Mar 2016 19:52:01 +0300 From: Michael Shigorin To: smoke-room@lists.altlinux.org Message-ID: <20160304165201.GZ1119@imap.altlinux.org> Mail-Followup-To: smoke-room@lists.altlinux.org References: <56D401DC.7050701@rambler.ru> <56D69837.9070601@rambler.ru> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="gKMricLos+KVdGMg" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <56D69837.9070601@rambler.ru> User-Agent: Mutt/1.5.23.88.hg577987ca2d02 (2014-03-12) Subject: [room] =?koi8-r?b?0NLPINLB2s3F0iDLz9LO0SDXICByZWd1bGFyL3N0YXJ0?= =?koi8-r?b?ZXJraXRz?= X-BeenThere: smoke-room@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: =?koi8-r?b?69XM2NTV0s7ZyiDPxtTP0MnL?= List-Id: =?koi8-r?b?69XM2NTV0s7ZyiDPxtTP0MnL?= List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Mar 2016 16:52:01 -0000 Archived-At: List-Archive: --gKMricLos+KVdGMg Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit On Wed, Mar 02, 2016 at 10:37:27AM +0300, Alexei V. Mezin wrote: > Вот что думаете, современный АЛьТ обычный юзер сможет поставить? > Прекрасный, но старенький Симпли -- может быть. Если на не слишком новое > железо. Сегодняший regular или starterkit? Нет. Потому что на UEFI на > автомате оно ставится в практически неработоспособной конфигурации, а > создание UEFI-раздела вручную это СИЛЬНО выше порога вхождения обычного > юзера. Лучше помоги выработать эвристику. На всякий прилагаю текущий скрипт, над которым работаю -- по умолчанию profile.scm из alterator-vm, см. http://git.altlinux.org/gears/a/alterator-vm.git?p=alterator-vm.git;a=blob;f=profile.scm;hb=HEAD --  ---- WBR, Michael Shigorin / http://altlinux.org   ------ http://opennet.ru / http://anna-news.info --gKMricLos+KVdGMg Content-Type: application/x-sh Content-Disposition: attachment; filename="10-vm-profile.sh" Content-Transfer-Encoding: quoted-printable #!/bin/sh=0A=0A# swap size multiplicator (static for now)=0ASWAP_MUL=3D1=0A= # root size multiplicators against the actual one for a LiveCD (if any)=0AR= OOT_MUL_MIN=3D3/2=0AROOT_MUL_MAX=3D4=0A=0A# values below in gigabytes, migh= t be natural fractions=0ASWAP_MAX=3D8=0AROOT_MIN=3D1 # this is integer (or = improve the comparison below)=0AROOT_SIZE=3D5=0AHOME_SIZE=3D1/2 # this will= be marked to fill up free space=0A=0A# recalculate in kilobytes=0ASWAP_MAX= =3D$[1048576*$SWAP_MAX]=0AROOT_MIN=3D$[1048576*$ROOT_MIN]=0AROOT_SIZE=3D$[1= 048576*$ROOT_SIZE]=0AHOME_SIZE=3D$[1048576*$HOME_SIZE]=0A=0A# swap =3D=3D R= AM (but not more than $SWAP_MAX Gb)=0Aswap_size=3D"$[`grep MemTotal /proc/m= eminfo | sed 's/[^0-9]//g'`*$SWAP_MUL]"=0A[ $swap_size -gt $SWAP_MAX ] && s= wap_size=3D$SWAP_MAX=0A=0A# are we running off a LiveCD as a part of livecd= -install?=0Aif [ -d /.ro ]; then=0A root_size=3D"`df -Pk /.ro | tail -1 | {= read d t u rest; echo "$u"; }`"=0A [ $root_size -lt $ROOT_MIN ] && root_si= ze=3D$ROOT_MIN=0A root_min=3D"$[$root_size*$ROOT_MUL_MIN]"=0A root_max=3D"$= [$root_size*$ROOT_MUL_MAX]"=0Aelse=0A root_min=3D"$[1048576*$ROOT_SIZE]"=0A= root_max=3D"$[$root_min*$ROOT_MUL_MAX]"=0Afi=0A=0A# recalculate in 512-byt= e blocks for EVMS=0Aswap_size=3D"$[$swap_size*2]"=0Ahome_size=3D"$[$HOME_SI= ZE*2]"=0Aroot_min=3D"$[$root_min*2]"=0Aroot_max=3D"$[$root_max*2]"=0A=0Acat= > /var/cache/alterator/vm-profile.scm << _EOF_=0A((workstation=0A (title = =2E "Setup for workstation")=0A (action . trivial)=0A (actiondata=0A ("= swap" (size $mem . $mem) (fsim . "SWAPFS") (methods plain))=0A ("/" (size= $root_min . $root_max ) (fsim . "Ext2/3") (methods plain))=0A ("/home" (= size $home_size . #t) (fsim . "Ext2/3") (methods plain)))))=0A_EOF_=0A --gKMricLos+KVdGMg--