[opensuse-autoinstall] Bug with partitioning in autoyast
Hello, i'm testing the partitioning with autoyast and i maybe found a bug. if i use the partitioning like this, the partitioning system respects the decisions to delete or keep partitions: <partitioning xmlns="http://www.suse.com/1.0/yast2ns" type="list" > <drive xmlns="http://www.suse.com/1.0/yast2ns"> <device xmlns="http://www.suse.com/1.0/yast2ns">/dev/sda</device> <initialize xmlns="http://www.suse.com/1.0/yast2ns" config:type="boolean" xmlns:config="http://www.suse.com/1.0/configns"
true</initialize> <partitions xmlns="http://www.suse.com/1.0/yast2ns" config:type="list" xmlns:config="http://www.suse.com/1.0/configns" > <partition xmlns="http://www.suse.com/1.0/yast2ns"> <create xmlns="http://www.suse.com/1.0/yast2ns" config:type="boolean" xmlns:config="http://www.suse.com/1.0/configns" false</create> <filesystem xmlns="http://www.suse.com/1.0/yast2ns" config:type="symbol" xmlns:config="http://www.suse.com/1.0/configns" swap</filesystem> <format xmlns="http://www.suse.com/1.0/yast2ns" config:type="boolean" xmlns:config="http://www.suse.com/1.0/configns" false</format> <loop_fs xmlns="http://www.suse.com/1.0/yast2ns" config:type="boolean" xmlns:config="http://www.suse.com/1.0/configns" false</loop_fs> <mount xmlns="http://www.suse.com/1.0/yast2ns">swap</mount> <mountby xmlns="http://www.suse.com/1.0/yast2ns" config:type="symbol" xmlns:config="http://www.suse.com/1.0/configns" device</mountby> <resize xmlns="http://www.suse.com/1.0/yast2ns" config:type="boolean" xmlns:config="http://www.suse.com/1.0/configns" true</resize> <size xmlns="http://www.suse.com/1.0/yast2ns">auto</size> </partition> <partition xmlns="http://www.suse.com/1.0/yast2ns"> <create xmlns="http://www.suse.com/1.0/yast2ns" config:type="boolean" xmlns:config="http://www.suse.com/1.0/configns" false</create> <crypt_fs xmlns="http://www.suse.com/1.0/yast2ns" config:type="boolean" xmlns:config="http://www.suse.com/1.0/configns" false</crypt_fs> <filesystem xmlns="http://www.suse.com/1.0/yast2ns" config:type="symbol" xmlns:config="http://www.suse.com/1.0/configns" ext3</filesystem> <format xmlns="http://www.suse.com/1.0/yast2ns" config:type="boolean" xmlns:config="http://www.suse.com/1.0/configns" false</format> <label xmlns="http://www.suse.com/1.0/yast2ns">RECOVER</label> <loop_fs xmlns="http://www.suse.com/1.0/yast2ns" config:type="boolean" xmlns:config="http://www.suse.com/1.0/configns" false</loop_fs> <mount xmlns="http://www.suse.com/1.0/yast2ns">/recover</mount> <mountby xmlns="http://www.suse.com/1.0/yast2ns" config:type="symbol" xmlns:config="http://www.suse.com/1.0/configns" label</mountby> <resize xmlns="http://www.suse.com/1.0/yast2ns" config:type="boolean" xmlns:config="http://www.suse.com/1.0/configns" false</resize> </partition> <partition xmlns="http://www.suse.com/1.0/yast2ns"> <create xmlns="http://www.suse.com/1.0/yast2ns" config:type="boolean" xmlns:config="http://www.suse.com/1.0/configns" true</create> <crypt_fs xmlns="http://www.suse.com/1.0/yast2ns" config:type="boolean" xmlns:config="http://www.suse.com/1.0/configns" false</crypt_fs> <filesystem xmlns="http://www.suse.com/1.0/yast2ns" config:type="symbol" xmlns:config="http://www.suse.com/1.0/configns" ext3</filesystem> <format xmlns="http://www.suse.com/1.0/yast2ns" config:type="boolean" xmlns:config="http://www.suse.com/1.0/configns" true</format> <label xmlns="http://www.suse.com/1.0/yast2ns">ROOT</label> <loop_fs xmlns="http://www.suse.com/1.0/yast2ns" config:type="boolean" xmlns:config="http://www.suse.com/1.0/configns" false</loop_fs> <mount xmlns="http://www.suse.com/1.0/yast2ns">/</mount> <mountby xmlns="http://www.suse.com/1.0/yast2ns" config:type="symbol" xmlns:config="http://www.suse.com/1.0/configns" label</mountby> <resize xmlns="http://www.suse.com/1.0/yast2ns" config:type="boolean" xmlns:config="http://www.suse.com/1.0/configns" true</resize> <size xmlns="http://www.suse.com/1.0/yast2ns">10G</size> </partition> <partition xmlns="http://www.suse.com/1.0/yast2ns"> <create xmlns="http://www.suse.com/1.0/yast2ns" config:type="boolean" xmlns:config="http://www.suse.com/1.0/configns" true</create> <crypt_fs xmlns="http://www.suse.com/1.0/yast2ns" config:type="boolean" xmlns:config="http://www.suse.com/1.0/configns" false</crypt_fs> <filesystem xmlns="http://www.suse.com/1.0/yast2ns" config:type="symbol" xmlns:config="http://www.suse.com/1.0/configns" ext3</filesystem> <format xmlns="http://www.suse.com/1.0/yast2ns" config:type="boolean" xmlns:config="http://www.suse.com/1.0/configns" true</format> <label xmlns="http://www.suse.com/1.0/yast2ns">HOME</label> <loop_fs xmlns="http://www.suse.com/1.0/yast2ns" config:type="boolean" xmlns:config="http://www.suse.com/1.0/configns" false</loop_fs> <mount xmlns="http://www.suse.com/1.0/yast2ns">/home</mount> <mountby xmlns="http://www.suse.com/1.0/yast2ns" config:type="symbol" xmlns:config="http://www.suse.com/1.0/configns" label</mountby> <resize xmlns="http://www.suse.com/1.0/yast2ns" config:type="boolean" xmlns:config="http://www.suse.com/1.0/configns" true</resize> <size xmlns="http://www.suse.com/1.0/yast2ns">max</size> </partition> </partitions> <pesize xmlns="http://www.suse.com/1.0/yast2ns"/> <type xmlns="http://www.suse.com/1.0/yast2ns" config:type="symbol" xmlns:config="http://www.suse.com/1.0/configns" CT_DISK</type> <use xmlns="http://www.suse.com/1.0/yast2ns">all</use> </drive> </partitioning>
But if i remove all the tags xmlns="http://www.suse.com/1.0/yast2ns"/ xmlns:config="http://www.suse.com/1.0/configns", the autoyast doesn't respect my decisions and delete all the partitions. For instance, the second way is the way that AutoinstClone::Write outputs the infomation about partittioning added with: map partitions = "partitioning":[$["device":"/dev/sda", "initialize":true, "partitions":[$["create":true, "crypt_fs":false, "filesystem":`swap, "format":true, "loop_fs":false, "mount":"swap", "mountby":`device, "partition_id":130, "partition_nr":5, "resize":false, "size":"781337088"], $["create":true, "crypt_fs":false, "filesystem":`ext3, "format":true, "loop_fs":false, "mount":"/recover", "mountby":`device, "partition_id":131, "partition_nr":6, "resize":false, "size":"10733957632"], $["create":true, "crypt_fs":false, "filesystem":`ext3, "format":true, "loop_fs":false, "mount":"/", "mountby":`device, "partition_id":131, "partition_nr":7, "resize":false, "size":"10733957632"], $["create":true, "crypt_fs":false, "filesystem":`ext3, "format":true, "loop_fs":false, "mount":"/home", "mountby":`device, "partition_id":131,"partition_nr":8, "resize":false, "size":"20661871104"]], "pesize":"", "type":`CT_DISK, "use":"all"]] Profile::current = add(Profile::current, "partitioning",partitions); Thanks -- Leonardo Luiz Padovani da Mata barroca@gmail.com "May the force be with you, always" "Nerd Pride... eu tenho. Voce tem?" -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
on Tuesday 11 August 2009 Leonardo L. P. da Mata wrote:
Hello, i'm testing the partitioning with autoyast and i maybe found a bug. if i use the partitioning like this, the partitioning system respects the decisions to delete or keep partitions:
<partitioning xmlns="http://www.suse.com/1.0/yast2ns" type="list" > <drive xmlns="http://www.suse.com/1.0/yast2ns"> <device xmlns="http://www.suse.com/1.0/yast2ns">/dev/sda</device> <initialize xmlns="http://www.suse.com/1.0/yast2ns" config:type="boolean" xmlns:config="http://www.suse.com/1.0/configns"
But if i remove all the tags xmlns="http://www.suse.com/1.0/yast2ns"/ xmlns:config="http://www.suse.com/1.0/configns", the autoyast doesn't respect my decisions and delete all the partitions.
then why do you remove the namespace tags? ;) you can specify the namespace in the header like this: <?xml version="1.0"?> <!DOCTYPE profile> <profile xmlns="http://www.suse.com/1.0/yast2ns" xmlns:config="http://www.suse.com/1.0/configns"> ... </profile> and use it in <partitioning> then like this: <partitioning config:type="list"> <drive> <initialize config:type="boolean">false</initialize> ...
For instance, the second way is the way that AutoinstClone::Write outputs the infomation about partittioning added with:
I'm sorry but I don't get your point. -- ciao, Uwe Gansert Uwe Gansert SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Business: http://www.suse.de/~ug -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
I'm using opensuse 11.1 btw.
then why do you remove the namespace tags? ;) you can specify the namespace in the header like this:
<?xml version="1.0"?> <!DOCTYPE profile> <profile xmlns="http://www.suse.com/1.0/yast2ns" xmlns:config="http://www.suse.com/1.0/configns"> ... </profile>
and use it in <partitioning> then like this:
<partitioning config:type="list"> <drive> <initialize config:type="boolean">false</initialize> ...
For instance, the second way is the way that AutoinstClone::Write outputs the infomation about partittioning added with:
I'm sorry but I don't get your point.
I didn't remove the tags, the problem is that when i add the tags using: map partitions = $[SOME MAP....] Profile::current = add(Profile::current, "partitioning",partitions); And when printing with AutoinstClone::Write, the tags are not printed where they should appear. If the tags are only in the header, the system do not respect the partitioning information. got it?
-- ciao, Uwe Gansert
Uwe Gansert SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Business: http://www.suse.de/~ug
-- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
-- Leonardo Luiz Padovani da Mata barroca@gmail.com "May the force be with you, always" "Nerd Pride... eu tenho. Voce tem?" -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
on Wednesday 12 August 2009 Leonardo L. P. da Mata wrote:
And when printing with AutoinstClone::Write, the tags are not printed where they should appear. If the tags are only in the header, the system do not respect the partitioning information.
I have to reproduce that but it's hard to believe :) Are you sure you did not forget to set "initialize" to "false" maybe? It's true after cloning by default and will wipe out all partitions. Can you please send me a profile where it's not respected? And then the same profile where it is respected just by adding the namespaces? send it as attachment to a mail to me me or send me a link where I can download one please. -- ciao, Uwe Gansert Uwe Gansert SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Business: http://www.suse.de/~ug -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
participants (2)
-
Leonardo L. P. da Mata
-
Uwe Gansert