Use anaconda procedure for partiton and format a new HD

Dario Lesca d.lesca at solinos.it
Tue Sep 27 15:32:12 UTC 2005


Hi, I am new of this list, My first question is: It is possible
to use the anaconda procedure (/usr/lib/anaconda/*) to format,
patition, and create LVM volumes on a new disk, taking the layout
info from a file whit anaconda KS syntax?

Something like this:

export PYTHONPATH=/usr/lib/anaconda
echo "
clearpart --all
part /boot --fstype ext3 --onpart hda1
part swap --onpart hda2
part pv.3 --noformat --onpart hda3
volgroup Vol0 pv.3
logvol /u --fstype ext3 --name=lvmu --vgname=Vol0 --size=10000.0
logvol /var --fstype ext3 --name=lvmvar --vgname=Vol0 --size=6000.0
logvol / --fstype ext3 --name=lvmroot --vgname=Vol0 --size=4000.0
" | python /tmp/mymkdisk.py /dev/hdb

Many thanks for your suggestions..

-- 
Dario Lesca <d.lesca at solinos.it>




More information about the Kickstart-list mailing list