Re: [opensuse-autoinstall] chroot-scripts on SLES
![](https://seccdn.libravatar.org/avatar/aa81f8becd831ed0f380efd5219444b2.jpg?s=120&d=mm&r=g)
2011/4/29 Erico Mendonça <erico.mendonca@gmail.com>:
On Thu, Apr 28, 2011 at 6:02 PM, Matthias Praunegger <mpraunegger@d4e.at> wrote:
Oh dear, my mistake. I'm been almost certain that there has been some restriction. Nevertheless, what do you exactly want to do with your script? I just use the postpartitioning-scripts, because at this stage its the only way to have full access to the installation medium.
I have a pre-script that finds an specific partition, mounts it and creates a tar.gz from a few control files before formatting the disk in /tmp. Then, I need to copy those files back the installed system. This needs to be done before the first boot, or else I'll lose the files (they're on the ramdisk...).
The best moment would be the postpartitioning-scripts, but since they're not available on SLES11, I resorted to chroot-scripts... which didn't get executed at all :(
Have you tried to switch on the debug mode? <chroot-scripts config:type="list"> <script> <chrooted config:type="boolean">false</chrooted> <filename>chroot.sh</filename> <debug config:type="boolean">true</debug> <feedback config:type="boolean">true</feedback> <source><![CDATA[ #!/bin/bash echo "Wait" sleep 1000 ]]></source> </script> </chroot-scripts> Try to execute a sleep 1000 command in the chroot script. You can use that time to switch to a terminal (ctrl+alt+fX ) and check what's going on. -- Um die Liste abzubestellen, schicken Sie eine Mail an: opensuse-de+unsubscribe@opensuse.org Um eine Liste aller verfuegbaren Kommandos zu bekommen, schicken Sie eine Mail an: opensuse-de+help@opensuse.org
participants (1)
-
Matthias Praunegger