Use anaconda procedure for partiton and format a new HD

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, 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@xxxxxxxxxx>


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux