From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from g4t0017.houston.hp.com ([15.201.24.20]) by canuck.infradead.org with esmtps (Exim 4.72 #1 (Red Hat Linux)) id 1POYGq-0005SU-92 for kexec@lists.infradead.org; Fri, 03 Dec 2010 16:14:06 +0000 Received: from g4t0009.houston.hp.com (g4t0009.houston.hp.com [16.234.32.26]) by g4t0017.houston.hp.com (Postfix) with ESMTP id DBDC738B86 for ; Fri, 3 Dec 2010 16:14:02 +0000 (UTC) Received: from [16.17.222.159] (unknown [16.17.222.159]) by g4t0009.houston.hp.com (Postfix) with ESMTP id 6FC7AC18B for ; Fri, 3 Dec 2010 16:14:02 +0000 (UTC) Message-ID: <4CF91748.5000401@hp.com> Date: Fri, 03 Dec 2010 17:14:00 +0100 From: Louis Bouchard MIME-Version: 1.0 Subject: kdump_post : busybox returns "Applet not found" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1916211859==" Sender: kexec-bounces@lists.infradead.org Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: kexec@lists.infradead.org --===============1916211859== Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hello (again)

I did not think that I would come back to you so quickly, but I am having an issue with RHEL6 implementation of kexec-tools (apparently adapted for kexec-tools 2.0) while testing crashdc on RHEL6 (the initial release).

Everytime I trigger a crash with 'kdump_post' set to /var/crash/scripts/kdump_post.sh I get the following from busybox : kdump-post.sh: applet not found

Copying data        : [100%]
Saving core complete
kdump-post.sh: applet not found
dropping to initramfs shell
exiting this shell will reboot your system
For a while, I thought that my crashdc calling script was in cause, but I changed kdump_post.sh to one single "echo This is working" line and I still get the same thing :

# cat /var/crash/scripts/kdump-post.sh
echo "This is working"
/var/crash/scripts/kdump-post.sh
kdump-post.sh: applet not found
msh/ # /var/crash/scripts/kdump-post.sh
This is working
FYI, my crashdc scripts all work fine when I call them manually from the CLI.

I did not encounter this situation with SLES11, but from what I gather, it does not rely on  busybox.

Maybe someone could suggest ways to further investigate this issue. I'm available to test.

Kind regard,

...Louis

-- 
Louis Bouchard
Linux Support Engineer
Team lead, EMEA Linux Competency Center,
Linux Advocate, HP

HP Technology Services - Global Competency Center
Hewlett-Packard Company

louis.bouchard@hp.com     / Email
Mon-Fri 9-17<WET>,<GMT+2> / Working Hours
Mark Fay                  / Manager
mark.fay@hp.com           / Manager's Email
--===============1916211859== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec --===============1916211859==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mx1.redhat.com ([209.132.183.28]) by canuck.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux)) id 1PPL4Y-00073r-JP for kexec@lists.infradead.org; Sun, 05 Dec 2010 20:20:39 +0000 Date: Sun, 5 Dec 2010 15:19:39 -0500 From: Neil Horman Subject: Re: kdump_post : busybox returns "Applet not found" Message-ID: <20101205201938.GA2265@localhost.localdomain> References: <4CF91748.5000401@hp.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <4CF91748.5000401@hp.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: kexec-bounces@lists.infradead.org Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: Louis Bouchard Cc: kexec@lists.infradead.org On Fri, Dec 03, 2010 at 05:14:00PM +0100, Louis Bouchard wrote: > > > > > > > > Hello (again)
>
> I did not think that I would come back to you so quickly, but I am > having an issue with RHEL6 implementation of kexec-tools (apparently > adapted for kexec-tools 2.0) while testing crashdc on RHEL6 (the > initial release).
>
> Everytime I trigger a crash with 'kdump_post' set to > /var/crash/scripts/kdump_post.sh I get the following from busybox : > kdump-post.sh: applet not found
>
>
Copying data        : [100%]
> Saving core complete
> kdump-post.sh: applet not found
> dropping to initramfs shell
> exiting this shell will reboot your system
>
> For a while, I thought that my crashdc calling script was in cause, but > I changed kdump_post.sh to one single "echo This is working" line and I > still get the same thing :
>
>
# cat /var/crash/scripts/kdump-post.sh
> echo "This is working"
> /var/crash/scripts/kdump-post.sh
> kdump-post.sh: applet not found
> msh/ # /var/crash/scripts/kdump-post.sh
> This is working
>
I'm kind of suprised this is working at all. I don't see a #!/bin/sh or #!/bin/msh line at the top of the script. How does the system know what interpreter to use? Neil _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtprelay04.ispgateway.de ([80.67.31.42]) by canuck.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux)) id 1PPLZP-0007xV-8D for kexec@lists.infradead.org; Sun, 05 Dec 2010 20:52:31 +0000 Received: from [212.114.235.33] (helo=galilei.fritz.box) by smtprelay04.ispgateway.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1PPLZL-0003sp-S1 for kexec@lists.infradead.org; Sun, 05 Dec 2010 21:52:27 +0100 Message-ID: <4CFBFB8B.2060902@bwalle.de> Date: Sun, 05 Dec 2010 21:52:27 +0100 From: Bernhard Walle MIME-Version: 1.0 Subject: Re: kdump_post : busybox returns "Applet not found" References: <4CF91748.5000401@hp.com> <20101205201938.GA2265@localhost.localdomain> In-Reply-To: <20101205201938.GA2265@localhost.localdomain> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: kexec-bounces@lists.infradead.org Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: kexec@lists.infradead.org Am 05.12.10 21:19, schrieb Neil Horman: > I'm kind of suprised this is working at all. I don't see a #!/bin/sh or > #!/bin/msh line at the top of the script. How does the system know what > interpreter to use? /bin/sh is the default interpreter. Regards, Bernhard _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from g4t0015.houston.hp.com ([15.201.24.18]) by canuck.infradead.org with esmtps (Exim 4.72 #1 (Red Hat Linux)) id 1PPYmo-0003Bl-6y for kexec@lists.infradead.org; Mon, 06 Dec 2010 10:59:15 +0000 Received: from g4t0009.houston.hp.com (g4t0009.houston.hp.com [16.234.32.26]) by g4t0015.houston.hp.com (Postfix) with ESMTP id 76B9787F3 for ; Mon, 6 Dec 2010 10:59:09 +0000 (UTC) Received: from [16.17.61.61] (bouchardlnx.emea.hpqcorp.net [16.17.61.61]) by g4t0009.houston.hp.com (Postfix) with ESMTP id 3B4BEC104 for ; Mon, 6 Dec 2010 10:59:09 +0000 (UTC) Message-ID: <4CFCC1FC.2020409@hp.com> Date: Mon, 06 Dec 2010 11:59:08 +0100 From: Louis Bouchard MIME-Version: 1.0 Subject: Re: kdump_post : busybox returns "Applet not found" References: <4CF91748.5000401@hp.com> <20101205201938.GA2265@localhost.localdomain> <4CFBFB8B.2060902@bwalle.de> In-Reply-To: <4CFBFB8B.2060902@bwalle.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: kexec-bounces@lists.infradead.org Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: kexec@lists.infradead.org Hello, On 05/12/2010 21:52, Bernhard Walle wrote: > Am 05.12.10 21:19, schrieb Neil Horman: >> I'm kind of suprised this is working at all. I don't see a #!/bin/sh or >> #!/bin/msh line at the top of the script. How does the system know what >> interpreter to use? > > /bin/sh is the default interpreter. > > > Regards, > Bernhard > > _______________________________________________ > kexec mailing list > kexec@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/kexec While, as Bernhard said, /bin/sh is default so the test script does work, the crashdc scripts that I'm testing do have the #!/bin/sh at the beginning, with identical behavior. Kind regards, ..Louis -- Louis Bouchard Linux Support Engineer Team lead, EMEA Linux Competency Center, Linux Advocate, HP HP Technology Services - Global Competency Center Hewlett-Packard Company louis.bouchard@hp.com / Email Mon-Fri 9-17, / Working Hours Mark Fay / Manager mark.fay@hp.com / Manager's Email _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mx1.redhat.com ([209.132.183.28]) by canuck.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux)) id 1PPZnG-0006MJ-Hm for kexec@lists.infradead.org; Mon, 06 Dec 2010 12:03:47 +0000 Date: Mon, 6 Dec 2010 07:03:37 -0500 From: Neil Horman Subject: Re: kdump_post : busybox returns "Applet not found" Message-ID: <20101206120337.GA13373@hmsreliant.think-freely.org> References: <4CF91748.5000401@hp.com> <20101205201938.GA2265@localhost.localdomain> <4CFBFB8B.2060902@bwalle.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <4CFBFB8B.2060902@bwalle.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: kexec-bounces@lists.infradead.org Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: Bernhard Walle Cc: kexec@lists.infradead.org On Sun, Dec 05, 2010 at 09:52:27PM +0100, Bernhard Walle wrote: > Am 05.12.10 21:19, schrieb Neil Horman: > > I'm kind of suprised this is working at all. I don't see a #!/bin/sh or > > #!/bin/msh line at the top of the script. How does the system know what > > interpreter to use? > > /bin/sh is the default interpreter. > You might want to try adding that, is what I'm saying. Busybox uses msh by default, and may not have the code to handle that same inferrence. Make the interpreter an explicit #!/bin/sh or #!/bin/msh Neil > > Regards, > Bernhard > > _______________________________________________ > kexec mailing list > kexec@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/kexec _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mx1.redhat.com ([209.132.183.28]) by canuck.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux)) id 1PPb6s-00068l-Et for kexec@lists.infradead.org; Mon, 06 Dec 2010 13:28:07 +0000 Date: Mon, 6 Dec 2010 08:27:01 -0500 From: Neil Horman Subject: Re: kdump_post : busybox returns "Applet not found"' Message-ID: <20101206132701.GB13373@hmsreliant.think-freely.org> References: <4CF91748.5000401@hp.com> <20101205201938.GA2265@localhost.localdomain> <4CFBFB8B.2060902@bwalle.de> <4CFCC1FC.2020409@hp.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <4CFCC1FC.2020409@hp.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: kexec-bounces@lists.infradead.org Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: Louis Bouchard Cc: kexec@lists.infradead.org On Mon, Dec 06, 2010 at 11:59:08AM +0100, Louis Bouchard wrote: > Hello, > > On 05/12/2010 21:52, Bernhard Walle wrote: > > Am 05.12.10 21:19, schrieb Neil Horman: > >> I'm kind of suprised this is working at all. I don't see a #!/bin/sh or > >> #!/bin/msh line at the top of the script. How does the system know what > >> interpreter to use? > > > > /bin/sh is the default interpreter. > > > > > > Regards, > > Bernhard > > > > _______________________________________________ > > kexec mailing list > > kexec@lists.infradead.org > > http://lists.infradead.org/mailman/listinfo/kexec > > While, as Bernhard said, /bin/sh is default so the test script does > work, the crashdc scripts that I'm testing do have the #!/bin/sh at the > beginning, with identical behavior. > Try modifying it to #1/bin/msh then, its possible that the script which busybox puts together to emulate /bin/sh isn't working properly. That would tell us what needs fixing Neil > Kind regards, > > ..Louis > > -- > Louis Bouchard > Linux Support Engineer > Team lead, EMEA Linux Competency Center, > Linux Advocate, HP > > HP Technology Services - Global Competency Center > Hewlett-Packard Company > > louis.bouchard@hp.com / Email > Mon-Fri 9-17, / Working Hours > Mark Fay / Manager > mark.fay@hp.com / Manager's Email > > _______________________________________________ > kexec mailing list > kexec@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/kexec _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from g6t0187.atlanta.hp.com ([15.193.32.64]) by canuck.infradead.org with esmtps (Exim 4.72 #1 (Red Hat Linux)) id 1PPcaj-00025o-BM for kexec@lists.infradead.org; Mon, 06 Dec 2010 15:03:01 +0000 Message-ID: <4CFCFB21.9080609@hp.com> Date: Mon, 06 Dec 2010 16:02:57 +0100 From: Louis Bouchard MIME-Version: 1.0 Subject: Re: kdump_post : busybox returns "Applet not found"' References: <4CF91748.5000401@hp.com> <20101205201938.GA2265@localhost.localdomain> <4CFBFB8B.2060902@bwalle.de> <4CFCC1FC.2020409@hp.com> <20101206132701.GB13373@hmsreliant.think-freely.org> In-Reply-To: <20101206132701.GB13373@hmsreliant.think-freely.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: kexec-bounces@lists.infradead.org Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: Neil Horman Cc: "kexec@lists.infradead.org" Hello Neil & al, On 06/12/2010 14:27, Neil Horman wrote: > > Try modifying it to #1/bin/msh then, its possible that the script which busybox > puts together to emulate /bin/sh isn't working properly. That would tell us > what needs fixing > Neil > Looks like this was a "friday afternoon" kinda thing and you were right in pointing to the shebang not being present in my test script. For some ghostly reason, the ! at the start of the script I'm testing disapeared so : #!/bin/sh became # /bin/sh I didn't have any issue with SLES11 since the #! is there. Thanks for your quick help & sorry for the noise. Kind regards, ...Louis -- Louis Bouchard Linux Support Engineer Team lead, EMEA Linux Competency Center, Linux Advocate, HP HP Technology Services - Global Competency Center Hewlett-Packard Company louis.bouchard@hp.com / Email Mon-Fri 9-17, / Working Hours Mark Fay / Manager mark.fay@hp.com / Manager's Email _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mx1.redhat.com ([209.132.183.28]) by canuck.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux)) id 1PPdGK-0003Of-M4 for kexec@lists.infradead.org; Mon, 06 Dec 2010 15:46:02 +0000 Date: Mon, 6 Dec 2010 10:45:01 -0500 From: Neil Horman Subject: Re: kdump_post : busybox returns "Applet not found"' Message-ID: <20101206154501.GF13373@hmsreliant.think-freely.org> References: <4CF91748.5000401@hp.com> <20101205201938.GA2265@localhost.localdomain> <4CFBFB8B.2060902@bwalle.de> <4CFCC1FC.2020409@hp.com> <20101206132701.GB13373@hmsreliant.think-freely.org> <4CFCFB21.9080609@hp.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <4CFCFB21.9080609@hp.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: kexec-bounces@lists.infradead.org Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: Louis Bouchard Cc: "kexec@lists.infradead.org" On Mon, Dec 06, 2010 at 04:02:57PM +0100, Louis Bouchard wrote: > Hello Neil & al, > > On 06/12/2010 14:27, Neil Horman wrote: > > > > Try modifying it to #1/bin/msh then, its possible that the script > which busybox > > puts together to emulate /bin/sh isn't working properly. That would > tell us > > what needs fixing > > Neil > > > > Looks like this was a "friday afternoon" kinda thing and you were right > in pointing to the shebang not being present in my test script. > > For some ghostly reason, the ! at the start of the script I'm testing > disapeared so : > > #!/bin/sh > > became > > # /bin/sh > > I didn't have any issue with SLES11 since the #! is there. > > Thanks for your quick help & sorry for the noise. > > Kind regards, > > ...Louis > No problem, firday happens to the best of us :) Neil > -- > Louis Bouchard > Linux Support Engineer > Team lead, EMEA Linux Competency Center, > Linux Advocate, HP > > HP Technology Services - Global Competency Center > Hewlett-Packard Company > > louis.bouchard@hp.com / Email > Mon-Fri 9-17, / Working Hours > Mark Fay / Manager > mark.fay@hp.com / Manager's Email _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec