Hi, all,
When we develop the software, one tough issue happens during the
auto-installation of SLES 10 with autoyast scripts (see below).
Pls give us some suggestions or solutions to this issue.
Look forward to your reply. Thanks!!
[Issue summary]:Autoinstall SLES10 with autoyast scripts.
If there are four primary partitions on the disk, three of them
are used to install OS, then the fourth partition can not be remained.
Why? And how to keep the fourth primary partition?
[Issue details]
Partition List:
Device Boot Start End Blocks Id System
/dev/hdc1 * 1 582 293296+ 83 Linux
/dev/hdc2 583 1746 586656 82 Linux swap
/dev/hdc3 1747 17248 7813008 83 Linux
/dev/hdc4 17249 39770 11351088 83 Linux
SLES10 is planned to install on the previous three partitions:
/dev/hdc1---------/boot, formatted as ext2 in advanced, put autoinstall
scripts on this partition(path: /prep/autoinst.xml)
/dev/hdc2---------swap, formatted in the process of auto-install
/dev/hdc3---------/, formatted as reiser in the process of auto-install
/dev/hdc4-------suppose that this partition is a data section need to be
remained.
Step 1: make auto-install scripts - "autoinst.xml" as follows:
Reference to
http://forgeftp.novell.com/yast/doc/SLES10/autoinstall/CreateProfile.Partiti...
...
<partitioning config:type="list">
<drive>
<device>/dev/hdc</device>
<partitions config:type="list">
<partition>
<create config:type="boolean">false</create>
<format config:type="boolean">false</format>
<mount>/boot</mount>
1
</partition>
<partition>
<create config:type="boolean">false</create>
<format config:type="boolean">true</format>
<filesystem config:type="symbol">swap</filesystem>
2
<mount>swap</mount>
</partition>
<partition>
<create config:type="boolean">false</create>
<format config:type="boolean">true</format>
<filesystem config:type="symbol">reiser</filesystem>
<mount>/</mount>
3
</partition>
</partitions>
<use>1,2,3</use>
</drive>
</partitioning>
...
Step 2: Boot by SLES10 DVD, set startup parameter:
autoyast=device://hdc1/prep/autoinst.xml
Step 3: The error would be prompted when the process comes to "Create
Partition Plan". Then the installation would abort.
At this time, check /var/log/YaST2/y2log, we have found that error
exists in /usr/share/YaST2/include/autoinstall/autopart.ycp.
Try other way:
1>Change scripts like <use>linux</use> or <use>all</use>
No error would be promped. But the fourth primary partition - hdc4 is
deleted.
2>Make use of OpenSUSE 10.2 DVD to boot system and don't change scripts
(keep the same script above). The whole process of auto-install is normal.
3>When the error happens,
/usr/share/YaST2/include/autoinstall/autopart.ycp is replaced by
autopart.ycp of OpenSUSE10.2.
Then rebuild /usr/share/YaST2/modules/AutoinstStorage.ycp to generate
AutoinstStorage.ybc.
After updating this new AutoinstStorage.ybc in SLES10, the whole process
of auto-install is normal.
Whether is this one bug of SLES 10?
Furthermore, if the fourth partition is extended section (see below), the
auto-install of SLES 10 is also ok.
/dev/hdc1 * 1 582 293296+ 83 Linux
/dev/hdc2 583 1746 586656 82 Linux swap
/dev/hdc3 1747 17248 7813008 83 Linux
/dev/hdc4 17249 39770 11351088 5 Extended
/dev/hdc5 17249 39770 11351056+ 83 Linux
By the way, refer to
http://www.suse.de/~ug/autoyast_changes_SLES10SP1.html, SLES10SP1 has
resolved this issue on the condition of four primary partitions. Is that
right? Pls confirm it. If it's true, when will SLES10SP1 be released?
Best Regards!
*****************************************
Cheng Ningting(Carol Cheng)
Server Business Department
Lenovo Group Limited
6#,ShangDi ChuangYe Road,HaiDian,BEIJING
TEL:(010)58864185
E_Mail:chengnt@lenovo.com
****************************************
We are the new, we are the future, we are LENOVO!