[opensuse-autoinstall] post-scripts output/feedack to the user
Hi, i am trying to setup an autoyast-installation which installs an win-xp image to the first partition and setup a datadrive d. Everything is working fine, but id like to show that the win installation is in progress. I cannot figure out how, since the echos are not sent to the screen, any hints anyone? My section looks like this: <scripts> <post-scripts config:type="list"> <script> <debug config:type="boolean">true</debug> <filename>install_windows.sh</filename> <interpreter>shell</interpreter> <network_needed config:type="boolean">true</network_needed> <source><![CDATA[ #! /bin/sh echo Installing Windows, itll take time.... echo mount nfs mount -t nfs -o ro somehost:/images /mnt dd if=/mnt/winxp.img of=/dev/sda1 bs=64000k umount /mnt mkfs.ntfs /dev/sda2 echo Installing Windows DONE echo date ]]></source> </script> </post-scripts> </scripts> Regards Hartje Bruns -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
On Tuesday 15 May 2007 16:54, Hartje Bruns wrote:
i am trying to setup an autoyast-installation which installs an win-xp image to the first partition and setup a datadrive d. Everything is working fine, but id like to show that the win installation is in progress. I cannot figure out how, since the echos are not sent to the screen, any hints anyone?
hm. Not a nice solution but the only one that come to my mind. You can try something like this if you are installing via graphical environment:
<source><![CDATA[ #! /bin/sh
cat > /tmp/my.ycp <<EOT { string message = "Please wait..."; UI::OpenDialog( \`VBox( \`Label( message ) ) ); while( SCR::Read(.target.size, "/tmp/_done") < 0 ) { SCR::Execute(.target.bash, "sleep 1"); } UI::CloseDialog(); } EOT export DISPLAY=:0.0 /usr/lib/YaST2/bin/y2base /tmp/my.ycp qt &
mount -t nfs -o ro somehost:/images /mnt dd if=/mnt/winxp.img of=/dev/sda1 bs=64000k umount /mnt mkfs.ntfs /dev/sda2
echo "done" > /tmp/_done
]]></source> </script> </post-scripts> </scripts>
-- ciao, Uwe Gansert Uwe Gansert, Server Technologies Team 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)
-
Hartje Bruns
-
Uwe Gansert