Le 16/09/2013 17:33, Stefan Seyfried a écrit :
> Am 16.09.2013 17:22, schrieb Guillaume Gardet:
>> Le 16/09/2013 17:03, Stefan Seyfried a écrit :
>>> Am 16.09.2013 16:44, schrieb Guillaume Gardet:
>>>
>>>> atftp %pre only uses groupadd/useradd and sed.
>>>>
>>>> Other packages show "scriptlet failed, exit status 127" but for %post, not 
>>>> %pre and they are not fatal error contrary to atftp.
>>> all failing %pre are apparently fatal.
>>> I tried to "fix" atftp by adding "true" to the end of %pre, but then
>>> some other package fails.
>> Ok, nice info.
>>
>>> I'm pretty sure that the chroot inside the build-chroot where the image
>>> is built has no qemu-arm setup, but I don't know how to fix it.
>>>
>> But zypper is working.
> Yes. But zypper is called outside the "image-chroot":
>
>
> osc build ....
> => chroots into /local/osc/images-armv6l
>    => sets up qemu-arm
>    => installs lots of stuff and prepares stuff
>    => then decides to package an image
>    => mkdir /usr/src/packages/KIWIROOT-oem
>    => zypper in --root /usr/src/packages/KIWIROOT-oem ...
>       => rpm %pre/%post chroots into /usr/src/packages/KIWIROOT-oem
>          for pre/post scripts
>       => no qemu setup there
>          ==>  BOOOOOMMM!! :-)
>
> At least that's what I suspect is happening.
>
> I'll probably just try to build the image on the raspi directly :-)

If it works it will confirm your idea. ;)

I wanted to build on armv7 but Hostarch is set to x86_64, so I cannot build it 
using osc on ARM board. Overwriting Hostarch in prjconf does not help me and 
was still on x86_64... :(


Guillaume


-- 
To unsubscribe, e-mail: [email protected]
To contact the owner, e-mail: [email protected]

Reply via email to