[yast-devel] Adding special options with Yast Bootloader interface
Hello, i'm working in a project to build a recover system for OpenSuse using Yast, the idea is to copy the contents of a cd into a partition and then boot from this partition with autoyast to restore the installed system "automagically" . I've wrote code for copying the files and it looks good, but I wish to add a booloader option to boot from this partition, but i don't know how do I add this option using the Bootloader.ycp interface. So, where i can find some examples of dealing with new bootloader options? Is there any file that is read with the default proposal in the normal installation? I'm using OpenSuse 11.1 Thanks in advance. -- 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: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
Leonardo L. P. da Mata napsal(a):
Hello, i'm working in a project to build a recover system for OpenSuse using Yast, the idea is to copy the contents of a cd into a partition and then boot from this partition with autoyast to restore the installed system "automagically" . I've wrote code for copying the files and it looks good, but I wish to add a booloader option to boot from this partition, but i don't know how do I add this option using the Bootloader.ycp interface.
So, where i can find some examples of dealing with new bootloader options?
Is there any file that is read with the default proposal in the normal installation?
I'm using OpenSuse 11.1
Thanks in advance.
Hi, from my point of you for you is the easiest way to add new or edit section (if this is your purpose) use bootloader API for initialize underlaying library (juhliarik knows details as he now rewrite it for 11.2 but I think that sufficient is Initialize library from BootCommon, also Read from Bootloader do it) and then use Bootloader_API for direct communication with underlying library perl-Bootloader which interface is documented here - http://en.opensuse.org/YaST/Bootloader_API Yast2-bootloader still contain few not intuitive parts which is hard to understand (even for developer of this module). For you is interesting methods get/setSections and final writeSettings. Rest of methods is used to initialize library or global section of bootloader configuration so it is not interesting for you. JR -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
participants (2)
-
josef reidinger
-
Leonardo L. P. da Mata