Uwe Gansert schrieb am 20.05.2005 16:22:29:
error :
No declaration for attribute type of element device_map
^
What was wrong?
I don't know. It might help to see the profile.xml. Can you post it?
thank you, that's a bug. I fixed that and you can download new RPMs
from
here:
ftp://ftp.suse.com/pub/people/ug/RPMs/9.3/autoyast/
Thanks for the updates. It seems that yast shows the logical volumes
exactly now.
Is there a way to tell yast to create a xml file on installation
time,
like kickstart?
I don't know kickstart but wouldn't that be the "reference profile"
from
the autoyast UI?
That's right. Older RedHat installations (I think fedora still does)
generated a kickstart
file after installation. The machine can then be cloned using this
file
easily.
I don't think there is such a mechanism to do it automtically.
Autoyast doesn't seem to be embedded to the SuSE installation routine.
Wouldn't it be easier to modify the default installer to generate the xml
files?
The installer already has the required plausibility checks and is very
easy to use.
In addition this would give the possibility to generate a profile.xml
after
every installation with very little effort.
So back to my problem. The dtd validation now tells me following:
/tmp/YaST2-25586-KulPYS/valid.xml:7: element device_map: validity error :
No declaration for attribute type of element device_map
^
/tmp/YaST2-25586-KulPYS/valid.xml:9: element firmware: validity error : No
declaration for element firmware
<firmware>(hd0)</firmware>
^
/tmp/YaST2-25586-KulPYS/valid.xml:10: element linux: validity error : No
declaration for element linux
<linux>/dev/cciss/c0d0</linux>
^
/tmp/YaST2-25586-KulPYS/valid.xml:11: element device_map_entry: validity
error : No declaration for element device_map_entry
^
/tmp/YaST2-25586-KulPYS/valid.xml:12: element device_map: validity error :
No declaration for element device_map
^
/tmp/YaST2-25586-KulPYS/valid.xml:78: element bootloader: validity error :
Element bootloader content does not follow the DTD, expecting (activate? ,
global? , initrd_modules? , loader_device? , loader_type? , location? ,
repl_mbr? , sections?), got (activate device_map global initrd_modules
loader_device loader_type location repl_mbr sections )
</bootloader>
^
/tmp/YaST2-25586-KulPYS/valid.xml:127: element lvm2: validity error : No
declaration for element lvm2
<lvm2 config:type="boolean">true</lvm2>
^
/tmp/YaST2-25586-KulPYS/valid.xml:204: element drive: validity error :
Element drive content does not follow the DTD, expecting (device? ,
initialize? , is_lvm_vg? , partitions? , pesize? , use?), got (device
is_lvm_vg lvm2 partitions pesize use )
</drive>
^
Here is my profile.xml:
<?xml version="1.0"?>
<!DOCTYPE profile SYSTEM "/usr/share/autoinstall/dtd/profile.dtd">
<profile xmlns="http://www.suse.com/1.0/yast2ns"
xmlns:config="http://www.suse.com/1.0/configns">
<install>
<bootloader>
<activate config:type="boolean">false</activate>
<firmware>(hd0)</firmware>
<linux>/dev/cciss/c0d0</linux>
<global config:type="list">
<key>color</key>
<value>white/blue black/light-gray</value>
<key>default</key>
<value config:type="integer">0</value>
<key>timeout</key>
<value config:type="integer">8</value>
</global>
<module>piix</module>
<module>cciss</module>
<module>jbd</module>
<module>ext3</module>
<module>dm_mod</module>
/dev/cciss/c0d0
grub
<location>mbr</location>
false
<sections config:type="list">
<section config:type="list">
<key>title</key>
<value>SUSE LINUX 9.3</value>
<key>kernel</key>
<value>(hd0,0)/vmlinuz root=/dev/vg00/lv_root vga=0x314
selinux=0 splash=silent resume=/dev/vg00/lv_swap showopts</value>
<key>initrd</key>
<value>(hd0,0)/initrd</value>
</section>
<section config:type="list">
<key>title</key>
<value>Failsafe -- SUSE LINUX 9.3</value>
<key>kernel</key>
<value>(hd0,0)/vmlinuz root=/dev/vg00/lv_root showopts
ide=nodma apm=off acpi=off vga=normal noresume selinux=0 barrier=off nosmp
noapic maxcpus=0 3</value>
<key>initrd</key>
<value>(hd0,0)/initrd</value>
</section>
</sections>
</bootloader>
<general>
<clock>
<hwclock>localtime</hwclock>
<timezone>Europe/Berlin</timezone>
</clock>
<keyboard>
<keymap>german</keymap>
</keyboard>
<language>en_US</language>
<mode>
<confirm config:type="boolean">false</confirm>
</mode>
<mouse>
<id>22_exps2</id>
</mouse>
</general>
<partitioning config:type="list">
<drive>
<device>/dev/cciss/c0d0</device>
<partitions config:type="list">
<partition>
<filesystem config:type="symbol">ext3</filesystem>
<format config:type="boolean">true</format>
<mount>/boot</mount>
131
1
<region config:type="list">
0
25
</region>
<size>100270081</size>
</partition>
<partition>
vg00
142
2
<region config:type="list">
25
17406
</region>
<size>72716697601</size>
</partition>
</partitions>
<use>all</use>
</drive>
<drive>
<device>/dev/vg00</device>
true
<lvm2 config:type="boolean">true</lvm2>
<partitions config:type="list">
<partition>
<filesystem config:type="symbol">ext3</filesystem>
<format config:type="boolean">true</format>
lv_home
<mount>/home</mount>
142
<region config:type="list">
0
256
</region>
<size>1069547521</size>
</partition>
<partition>
<filesystem config:type="symbol">ext3</filesystem>
<format config:type="boolean">true</format>
lv_root
<mount>/</mount>
142
<region config:type="list">
0
1280
</region>
<size>5364514817</size>
</partition>
<partition>
<filesystem config:type="symbol">swap</filesystem>
<format config:type="boolean">true</format>
lv_swap
<mount>swap</mount>
142
<region config:type="list">
0
512
</region>
<size>2143289345</size>
</partition>
<partition>
<filesystem config:type="symbol">ext3</filesystem>
<format config:type="boolean">true</format>
lv_tmp
<mount>/tmp</mount>
142
<region config:type="list">
0
256
</region>
<size>1069547521</size>
</partition>
<partition>
<filesystem config:type="symbol">ext3</filesystem>
<format config:type="boolean">true</format>
lv_usr
<mount>/usr</mount>
142
<region config:type="list">
0
512
</region>
<size>2143289345</size>
</partition>
<partition>
<filesystem config:type="symbol">ext3</filesystem>
<format config:type="boolean">true</format>
lv_var
<mount>/var</mount>
142
<region config:type="list">
0
512
</region>
<size>2143289345</size>
</partition>
</partitions>
<pesize>4M</pesize>
<use>all</use>
</drive>
</partitioning>
<report>
<errors>
<log config:type="boolean">true</log>
<show config:type="boolean">true</show>
<timeout config:type="integer">0</timeout>
</errors>
<messages>
<log config:type="boolean">true</log>
<show config:type="boolean">true</show>
<timeout config:type="integer">0</timeout>
</messages>
<warnings>
<log config:type="boolean">true</log>
<show config:type="boolean">true</show>
<timeout config:type="integer">0</timeout>
</warnings>
<log config:type="boolean">true</log>
<show config:type="boolean">true</show>
<timeout config:type="integer">0</timeout>
</report>
<software>
<addons config:type="list">
<addon>X11</addon>
<addon>Min</addon>
</addons>
<base>Minimal+X11</base>
<packages config:type="list">
<package>lvm2</package>
<package>mkisofs</package>
<package>zisofs-tools</package>
</packages>
</software>
</install>
</profile>