[opensuse-autoinstall] Running chroot-script from cd/dvd medium
Hello, I try to run a chroot-script from the install cd/dvd medium using autoyast. Running it via http is easy. The only reference[1] I found using google is for post-install script. The only error message I see is: (none):/var/adm/autoinstall # find . -type f ./cache/installedSystem.xml ./logs/chroot-scripts.log (none):/var/adm/autoinstall # cat logs/chroot-scripts.log /bin/sh: /var/adm/autoinstall/scripts/chroot-scripts: No such file or directory I also found in the y2log: 2006-12-11 07:50:26 <3> linux(5877) [bash] ShellCommand.cc(shellcommand):78 cp: cannot stat `/autoyast/chroot.sh': No such file or directory 2006-12-11 07:50:26 <3> linux(5877) [bash] ShellCommand.cc(shellcommand):78 cp: cannot stat `/tmp/YaST2-02679-C4nfqw/tmp_mount//autoyast/chroot.sh': No such file or directory My entry in the autoyast.xml is: <scripts> <chroot-scripts config:type="list"> <script> <chrooted config:type="boolean">true</chrooted> <filename>chroot.sh</filename> <location>file:///autoyast/chroot.sh</location> <interpreter>shell</interpreter> </script> </chroot-scripts> </scripts> [1] http://lists.suse.com/archive/suse-autoinstall/2005-Nov/0064.html Thomas -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
On Monday 11 December 2006 20:06, Thomas Glanzmann wrote:
<scripts> <chroot-scripts config:type="list"> <script> <chrooted config:type="boolean">true</chrooted> <filename>chroot.sh</filename> <location>file:///autoyast/chroot.sh</location> <interpreter>shell</interpreter> </script> </chroot-scripts> </scripts>
you try to access the DVD media from within the chrooted installed system. That might lead to your problem. Either use chrooted=false and access the installed system via /mnt/... or use a chrooted=false script that copys the "real" script from the DVD to the /mnt directory. Then you should be able to use file:/// again because the script is really there and no DVD-fallback is needed. -- ciao, Uwe Gansert Uwe Gansert, Server Technologies Team SUSE LINUX Products GmbH, Maxfeldstrasse 5, D-90409 Nuernberg, Germany Business: http://www.suse.de/~ug now playing Diary Of Dreams - E.-dead-Motion -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
Hallo Uwe,
you try to access the DVD media from within the chrooted installed system. That might lead to your problem. Either use chrooted=false and access the installed system via /mnt/... or use a chrooted=false script that copys the "real" script from the DVD to the /mnt directory. Then you should be able to use file:/// again because the script is really there and no DVD-fallback is needed.
I 'solved' it otherwise: <scripts> <chroot-scripts config:type="list"> <script> <chrooted config:type="boolean">true</chrooted> <filename>chroot.sh</filename> <source> <![CDATA[ #!/bin/bash df -h mount mkdir -p /tg.media mount /dev/sda /tg.media mount /dev/hda /tg.media mount /dev/hdc /tg.media /tg.media/autoyast/chroot.sh umount /tg.media rmdir /tg.media ]]> </source> <interpreter>shell</interpreter> </script> </chroot-scripts> </scripts> However, I consider this a bug of the autoyast system. Autoyast should copy the chroot-script to the installed system. Than chroot to it and execute it. Thomas -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
participants (2)
-
Thomas Glanzmann
-
Uwe Gansert