From boris.wokurka@zamg.ac.at Thu Sep 8 14:51:42 2005 From: Boris Wokurka To: autoinstall@lists.opensuse.org Subject: which script-language for pre-inst.script? Date: Thu, 08 Sep 2005 14:51:42 +0000 Message-ID: <43204FDF.7030800@zamg.ac.at> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2202727439284301095==" --===============2202727439284301095== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Hello list, I want to partition the disc via sfdisk in a pre-install-script. The docu tells me only not to use shell or perl, but not what I can use. My shell-script did not work (BTW, it's the first time I used sfdisk...), it looks like this: Any hints? Thank You, Boris --===============2202727439284301095==-- From ug@suse.de Thu Sep 8 16:04:07 2005 From: Uwe Gansert To: autoinstall@lists.opensuse.org Subject: Re: [suse-autoinstall] which script-language for pre-inst.script? Date: Thu, 08 Sep 2005 16:04:07 +0000 Message-ID: <200509081804.18333.ug@suse.de> In-Reply-To: <43204FDF.7030800@zamg.ac.at> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2355035909794178313==" --===============2355035909794178313== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit On Thursday 08 September 2005 16:51, Boris Wokurka wrote: > I want to partition the disc via sfdisk in a pre-install-script. The this will not work, since hardware probing is already done before the pre-script runs. YaST will not know about your new partitioning. > docu tells me only not to use shell or perl, but not what I can use. hm? Where is that documented like this? Shell and perl are the only options for a pre-script -- ciao, Uwe Gansert Uwe Gansert, Server Technologies Team SUSE LINUX Products GmbH, Maxfeldstrasse 5, D-90409 Nuernberg, Germany e-mail: uwe.gansert(a)suse.de, Tel: +49-(0)911-74053-0, Fax: +49-(0)911-74053-476, Web: http://www.suse.de --===============2355035909794178313==-- From tws26@cam.ac.uk Thu Sep 8 21:31:27 2005 From: Tom Scholl To: autoinstall@lists.opensuse.org Subject: Re: [suse-autoinstall] which script-language for pre-inst.script? Date: Thu, 08 Sep 2005 21:31:27 +0000 Message-ID: In-Reply-To: <200509081804.18333.ug@suse.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8411002414608419636==" --===============8411002414608419636== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit >> I want to partition the disc via sfdisk in a pre-install-script. The > > this will not work, since hardware probing is already done before the > pre-script runs. YaST will not know about your new partitioning. The setup I'm currently using does something along the lines of this. It's a bit bastardised, but essentially we do this, from a pre-install shell script: if [ ! PARTITIONING_HAS_BEEN_DONE ]; then ... do partioning, and then force a reboot immediately ... fi By immediately rebooting, we kill YaST, and then on the second boot, when we run YaST again, it can probe hardware and be happy. It looks simple on paper, but when you factor in having to manually download several binaries to use from within the script ('reboot' and 'sfdisk', for non-interactive partitioning), it gets a bit complicated. I'd post our scripts, only I don't want to scare the list ;) Tom Scholl >> docu tells me only not to use shell or perl, but not what I can use. > > hm? Where is that documented like this? > Shell and perl are the only options for a pre-script > > -- > ciao, Uwe Gansert > > Uwe Gansert, Server Technologies Team > SUSE LINUX Products GmbH, Maxfeldstrasse 5, D-90409 Nuernberg, Germany > e-mail: uwe.gansert(a)suse.de, Tel: +49-(0)911-74053-0, > Fax: +49-(0)911-74053-476, Web: http://www.suse.de > > -- > To unsubscribe, e-mail: suse-autoinstall-unsubscribe(a)suse.com > For additional commands, e-mail: suse-autoinstall-help(a)suse.com > > --===============8411002414608419636==-- From ug@suse.de Fri Sep 9 14:22:17 2005 From: Uwe Gansert To: autoinstall@lists.opensuse.org Subject: Re: [suse-autoinstall] which script-language for pre-inst.script? Date: Fri, 09 Sep 2005 14:22:17 +0000 Message-ID: <200509091622.31669.ug@suse.de> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2331589619280603659==" --===============2331589619280603659== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit On Thursday 08 September 2005 23:32, Tom Scholl wrote: > >> I want to partition the disc via sfdisk in a pre-install-script. The > > > > this will not work, since hardware probing is already done before the > > pre-script runs. YaST will not know about your new partitioning. > > The setup I'm currently using does something along the lines of this. > It's a bit bastardised, but essentially we do this, from a > pre-install shell script: > > if [ ! PARTITIONING_HAS_BEEN_DONE ]; then > ... > do partioning, > and then force a reboot immediately > ... > fi > > By immediately rebooting, we kill YaST, and then on the > second boot, when we run YaST again, it can probe hardware and be happy. yes, of course this works too ;) I try to let autoyast reread the partition table after the pre-script for SUSE Linux 10.0 and all following versions. I hope that will make no problems with other components but if it works, then you can do whatever you want with the harddisk in a pre-script. -- ciao, Uwe Gansert Uwe Gansert, Server Technologies Team SUSE LINUX Products GmbH, Maxfeldstrasse 5, D-90409 Nuernberg, Germany e-mail: uwe.gansert(a)suse.de, Tel: +49-(0)911-74053-0, Fax: +49-(0)911-74053-476, Web: http://www.suse.de --===============2331589619280603659==--