* %pre scriptlet failed in Guestfish
@ 2015-11-23 12:39 Alexandre Freire da Silva Osorio
2015-11-23 14:28 ` Mark Hatle
0 siblings, 1 reply; 4+ messages in thread
From: Alexandre Freire da Silva Osorio @ 2015-11-23 12:39 UTC (permalink / raw)
To: yocto@yoctoproject.org
Hello,
Running an image built with Yocto 1.8 in Guestfish I get the following error when trying to install a RPM package:
sh "cd /home/root; rpm -ivh --nodeps package.rpm"
libguestfs: trace: sh "cd /home/root; rpm -ivh --nodeps package.rpm"
guestfsd: error: error: install: %pre scriptlet failed (2), skipping package.x86_64
libguestfs: trace: sh = NULL (error)
libguestfs: error: sh: error: install: %pre scriptlet failed (2), skipping package.x86_64
This error doesn't occur ehqne running the same image in QEMU. Please could anyone give me a help?
Thanks in advance.
Regards,
Alexandre
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: %pre scriptlet failed in Guestfish
2015-11-23 12:39 %pre scriptlet failed in Guestfish Alexandre Freire da Silva Osorio
@ 2015-11-23 14:28 ` Mark Hatle
2015-11-27 11:56 ` Alexandre Freire da Silva Osorio
0 siblings, 1 reply; 4+ messages in thread
From: Mark Hatle @ 2015-11-23 14:28 UTC (permalink / raw)
To: Alexandre Freire da Silva Osorio, yocto@yoctoproject.org
On 11/23/15 6:39 AM, Alexandre Freire da Silva Osorio wrote:
> Hello,
>
> Running an image built with Yocto 1.8 in Guestfish I get the following error when trying to install a RPM package:
I don't know what Guestfish is. But in these cases, the best way to handle it
is to us 'rpm -q --scriptlets <package>'
And then run the commands manually, in the same environment as RPM would run in,
to verify failure modes.
> sh "cd /home/root; rpm -ivh --nodeps package.rpm"
> libguestfs: trace: sh "cd /home/root; rpm -ivh --nodeps package.rpm"
> guestfsd: error: error: install: %pre scriptlet failed (2), skipping package.x86_64
> libguestfs: trace: sh = NULL (error)
> libguestfs: error: sh: error: install: %pre scriptlet failed (2), skipping package.x86_64
>
> This error doesn't occur ehqne running the same image in QEMU. Please could anyone give me a help?
The error above -appears- to indicate it tried to the 'sh', but there was no
'sh' in your environment.
--Mark
> Thanks in advance.
>
> Regards,
> Alexandre
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: %pre scriptlet failed in Guestfish
2015-11-23 14:28 ` Mark Hatle
@ 2015-11-27 11:56 ` Alexandre Freire da Silva Osorio
2015-11-27 14:53 ` Mark Hatle
0 siblings, 1 reply; 4+ messages in thread
From: Alexandre Freire da Silva Osorio @ 2015-11-27 11:56 UTC (permalink / raw)
To: yocto@yoctoproject.org
Mark,
Thanks for your attention.
In fact there's nothing in PRE script of the rpm that could cause the error, it just executes a 'exit 0'. I really don't know what can be the cause. More than this, why the error doesn't occur when running on a QEMU VM, just inside guestfish.
Regards,
Alexandre
-----Original Message-----
From: Mark Hatle [mailto:mark.hatle@windriver.com]
Sent: segunda-feira, 23 de novembro de 2015 12:28
To: Alexandre Freire da Silva Osorio <alexandre.osorio@eldorado.org.br>; yocto@yoctoproject.org
Subject: Re: [yocto] %pre scriptlet failed in Guestfish
On 11/23/15 6:39 AM, Alexandre Freire da Silva Osorio wrote:
> Hello,
>
> Running an image built with Yocto 1.8 in Guestfish I get the following error when trying to install a RPM package:
I don't know what Guestfish is. But in these cases, the best way to handle it is to us 'rpm -q --scriptlets <package>'
And then run the commands manually, in the same environment as RPM would run in, to verify failure modes.
> sh "cd /home/root; rpm -ivh --nodeps package.rpm"
> libguestfs: trace: sh "cd /home/root; rpm -ivh --nodeps package.rpm"
> guestfsd: error: error: install: %pre scriptlet failed (2), skipping package.x86_64
> libguestfs: trace: sh = NULL (error)
> libguestfs: error: sh: error: install: %pre scriptlet failed (2), skipping package.x86_64
>
> This error doesn't occur ehqne running the same image in QEMU. Please could anyone give me a help?
The error above -appears- to indicate it tried to the 'sh', but there was no 'sh' in your environment.
--Mark
> Thanks in advance.
>
> Regards,
> Alexandre
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: %pre scriptlet failed in Guestfish
2015-11-27 11:56 ` Alexandre Freire da Silva Osorio
@ 2015-11-27 14:53 ` Mark Hatle
0 siblings, 0 replies; 4+ messages in thread
From: Mark Hatle @ 2015-11-27 14:53 UTC (permalink / raw)
To: Alexandre Freire da Silva Osorio, yocto@yoctoproject.org
On 11/27/15 5:56 AM, Alexandre Freire da Silva Osorio wrote:
> Mark,
>
> Thanks for your attention.
>
> In fact there's nothing in PRE script of the rpm that could cause the error, it just executes a 'exit 0'. I really don't know what can be the cause. More than this, why the error doesn't occur when running on a QEMU VM, just inside guestfish.
In order to run the 'exit 0', it needs to run the shell. So it's trying to run
either /bin/sh or /bin/bash (not sure) and it's being stopped.
--Mark
> Regards,
> Alexandre
>
> -----Original Message-----
> From: Mark Hatle [mailto:mark.hatle@windriver.com]
> Sent: segunda-feira, 23 de novembro de 2015 12:28
> To: Alexandre Freire da Silva Osorio <alexandre.osorio@eldorado.org.br>; yocto@yoctoproject.org
> Subject: Re: [yocto] %pre scriptlet failed in Guestfish
>
> On 11/23/15 6:39 AM, Alexandre Freire da Silva Osorio wrote:
>> Hello,
>>
>> Running an image built with Yocto 1.8 in Guestfish I get the following error when trying to install a RPM package:
>
> I don't know what Guestfish is. But in these cases, the best way to handle it is to us 'rpm -q --scriptlets <package>'
>
> And then run the commands manually, in the same environment as RPM would run in, to verify failure modes.
>
>> sh "cd /home/root; rpm -ivh --nodeps package.rpm"
>> libguestfs: trace: sh "cd /home/root; rpm -ivh --nodeps package.rpm"
>> guestfsd: error: error: install: %pre scriptlet failed (2), skipping package.x86_64
>> libguestfs: trace: sh = NULL (error)
>> libguestfs: error: sh: error: install: %pre scriptlet failed (2), skipping package.x86_64
>>
>> This error doesn't occur ehqne running the same image in QEMU. Please could anyone give me a help?
>
> The error above -appears- to indicate it tried to the 'sh', but there was no 'sh' in your environment.
>
> --Mark
>
>> Thanks in advance.
>>
>> Regards,
>> Alexandre
>>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-11-27 14:53 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-23 12:39 %pre scriptlet failed in Guestfish Alexandre Freire da Silva Osorio
2015-11-23 14:28 ` Mark Hatle
2015-11-27 11:56 ` Alexandre Freire da Silva Osorio
2015-11-27 14:53 ` Mark Hatle
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.