RE: [opensuse-autoinstall] linuxrc 'install' alternative in AutoYaST profile

Hi, i succeeded to play with Exec= and here is short howto: 1. Extract initrd you use to start installation (i.e. get one from opensuse/SUSE media from boot/i386/loader). http://wiki.openvz.org/Modifying_initrd_image 2. Create your script with required logic. I.e. if you want to set/modify linuxrc's 'install=' parameter, edit /linuxrc.config file and add following to the config file withing the script: Install: ftp://<ip>/path/to/suse/install Example of /linuxrc.config: KernelPCMCIA: 1 UseUSBSCSI: 1 Product: SUSE Linux Enterprise Desktop 11 UpdateDir: /linux/suse/i386-sled11 MemLoadImage: 327680 MemYaST: 170000 InstsysComplain: 1 InitrdID: 2010-05-20.3ee27c11 dud: disk:/?device=*usb* KexecReboot: 0 Install: ftp://172.17.1.187/SLED11SP1 AutoYaST: ftp://172.17.1.187/autoyast/autoinst.xml Netdevice: eth0 Netsetup: dhcp 3. Create the new initrd 4. Start your installation - insert following boot parameter into boot parameters: exec=/path/to/your/script/on/initrd 5. That's it ;) HTH, Stanley
On 12/04/2011 at 15:27, in message <4D97025D38B52B4BAA8C2B7DD9748B9D38469B3F2F@PEPWMV00071.corp.pep.pvt>, "Stephens, Bill PBSG" <Bill.Stephens@pepsico.com> wrote: Yes, please provide an example. I've been wanting to do this for quite a while and haven't found an easy way yet.
-----Original Message----- From: Joseph V Moss [mailto:jmoss@ecsmtp.pdx.intel.com] Sent: Monday, April 11, 2011 3:42 PM To: Stanislav Bocinec Cc: opensuse-autoinstall@opensuse.org Subject: Re: [opensuse-autoinstall] linuxrc 'install' alternative in AutoYaST profile
Note that while you can't do it via autoyast, it is possible to make changes to the installation source using the Exec: option in linuxrc. The command run by Exec: runs early enough that it can make changes to the content of the info file and have the new values used by linuxrc.
We use that functionality to use one set of boot media globally that automatically selects the nearest regional install server.
Thanks very much!
Stanley
Stanislav Bocinec
Technology Consultant sbocinec@novell.com +421 2 32 555 843, gsm +421 917 486 743 www.novell.sk
Novell Making IT Work As One www.novell.com
On 11/04/2011 at 13:43, in message <201104111343.03090.ug@suse.de>, Uwe Gansert <ug@suse.de> wrote: on Monday 11 April 2011 Stanislav Bocinec wrote:
It means, that there is no way how to set/modify 'installÿparameter using AutoYaST profile?
that's right. You can not switch the installation source It's on my TODO but not yet implemented
-- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
-- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
participants (1)
-
Stanislav Bocinec