Mailinglist Archive: opensuse-autoinstall (99 mails)
| < Previous | Next > |
Re: [opensuse-autoinstall] post-scripts output/feedack to the user
- From: Uwe Gansert <ug@xxxxxxx>
- Date: Wed, 16 May 2007 10:13:37 +0200
- Message-id: <200705161013.37353.ug@xxxxxxx>
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@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-autoinstall+help@xxxxxxxxxxxx
> 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@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-autoinstall+help@xxxxxxxxxxxx
| < Previous | Next > |