which script-language for pre-inst.script?
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: <configure> <scripts> <pre-scripts config:type="list"> <script> <interpreter>shell</interpreter> <filename>pre-inst.sh</filename> <source><![CDATA[ #!/bin/sh sfdisk /dev/sda << EOF ,8069,L ,,E ,48381,L ,48172,L ,4102,S ,2023,L ,2008,L ; EOF ]]> </source> </script> </pre-scripts> </scripts> Any hints? Thank You, Boris
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@suse.de, Tel: +49-(0)911-74053-0, Fax: +49-(0)911-74053-476, Web: http://www.suse.de
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@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@suse.com For additional commands, e-mail: suse-autoinstall-help@suse.com
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@suse.de, Tel: +49-(0)911-74053-0, Fax: +49-(0)911-74053-476, Web: http://www.suse.de
participants (3)
-
Boris Wokurka
-
Tom Scholl
-
Uwe Gansert