[opensuse-autoinstall] change / bug with init scripts in opensuse 12.1 ?
I tried to upgrade my autoyast configuration to opensuse 12.1. In my autoinst.xml I have the section below. The init script worked fine in openSuse 11.4, but isn't executed with 12.1 after autoyast finishes. The script is still in /var/adm/autoinstall/init.d When I reboot the machine myself, the script *is* executed. Could this be a change or bug related to the new systemd init tool? thanks in advance W. Dobbe <scripts> <chroot-scripts config:type="list"> (deleted) </chroot-scripts> <init-scripts config:type="list"> <script> <chrooted config:type="boolean">false</chrooted> <interpreter>shell</interpreter> <source><![CDATA[ #!/bin/sh chvt 1 exec < /dev/tty1 > /dev/tty1 cd /opt/vidigo_li/scripts/postinstall /opt/vidigo_li/scripts/postinstall/run_postinstall.sh ]]></source> </script> </init-scripts> </scripts> -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
on Thursday 17 November 2011 winfried_mb2@xmsnet.nl wrote:
When I reboot the machine myself, the script *is* executed. Could this be a change or bug related to the new systemd init tool?
yes, indeed that seems to be a bug because of the systemd You can workaround it: <chroot-scripts config:type="list"> <script> <chrooted config:type="boolean">true</chrooted> <interpreter>shell</interpreter> <source><![CDATA[ insserv autoyast ]]></source> </script> that does not hurt on older openSUSE/SLES releases too Or pass init=/sbin/sysvinit to the kernel. That'll switch to the old and working boot mechanism. -- ciao, Uwe Gansert SUSE LINUX Products GmbH, HRB 16746 (AG Nürnberg) GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer Home: http://www.suse.de/~ug - Blog: http://suse.gansert.net listening to: "Stern" by In Strict Confidence -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
Thanks a lot for the information. The chroot script work-around doesn't seem to work for me. What is the easiest way to pass the init parameter to the kernel? Do I have to include a bootloader section in my autoinst.xml ? regards, Winfried Op Vr, 18 november, 2011 11:06 am schreef Uwe Gansert:
yes, indeed that seems to be a bug because of the systemd You can workaround it:
<chroot-scripts config:type="list"> <script> <chrooted config:type="boolean">true</chrooted> <interpreter>shell</interpreter> <source><![CDATA[ insserv autoyast ]]></source> </script>
that does not hurt on older openSUSE/SLES releases too Or pass init=/sbin/sysvinit to the kernel. That'll switch to the old and working boot mechanism.
-- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
on Friday 18 November 2011 winfried_mb2@xmsnet.nl wrote:
The chroot script work-around doesn't seem to work for me.
that's odd. Are you sure you did it correctly in the XMl with chrooted=true and in the correct section? -- ciao, Uwe Gansert SUSE LINUX Products GmbH, HRB 16746 (AG Nürnberg) GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer Home: http://www.suse.de/~ug - Blog: http://suse.gansert.net listening to: "Seven Lives" by In Strict Confidence -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
Pretty sure. Before the script you suggested I have another chroot script that has <chrooted config:type="boolean">false</chrooted>, maybe that has some influence. Unfortunately our VPN line is down, so I cannot include the actual autoyast section right now. For now I added a sed command at the end of my non chrooted chroot script that adds the kernel parameter to the generated grub file, which solves the problem. regards, Winfried On 22 nov. 2011, at 14:40, Uwe Gansert wrote:
on Friday 18 November 2011 winfried_mb2@xmsnet.nl wrote:
The chroot script work-around doesn't seem to work for me.
that's odd. Are you sure you did it correctly in the XMl with chrooted=true and in the correct section?
-- ciao, Uwe Gansert
SUSE LINUX Products GmbH, HRB 16746 (AG Nürnberg) GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer Home: http://www.suse.de/~ug - Blog: http://suse.gansert.net listening to: "Seven Lives" by In Strict Confidence -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
-- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
participants (3)
-
Uwe Gansert
-
Winfried Dobbe
-
winfried_mb2@xmsnet.nl