All of lore.kernel.org
 help / color / mirror / Atom feed
* pkg_postinst shell?
@ 2017-01-28  2:58 Takashi Matsuzawa
  2017-01-30  5:29 ` Takashi Matsuzawa
  0 siblings, 1 reply; 2+ messages in thread
From: Takashi Matsuzawa @ 2017-01-28  2:58 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 1005 bytes --]

Hello Yocto.
I am debugging my recipe, which uses pkg_postinst but does not seem to work as expected.

It runs fine without $D detection.
However, if I try to run it at first boot (skipping with exit 1 if $D is not empty), the board boot seems to hang.
I think error (syntax error, etc.?) happening when it is run on the board, but package manager.

I doubt it is caused by non-existence of '#!/bin/sh' in my script but I am not sure since I am still trying the builds again and again.

i) Regarding the posttest script execution, is there log available so that I can look into (instead of writing out log file by myself from within my script)?  I do not seem to find it in temp folder of my recipes's working directory.

ii) Is '#!/bin/sh' always necessary?

iii) What happens with pkg_postinst_PN_append?  If it is defined without pkg_postinst_PN, it still works and executed?  If i) is true what about '#!/bin/sh' in this case?

If you have qucik suggestions, it is a great help.




[-- Attachment #2: Type: text/html, Size: 1700 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: pkg_postinst shell?
  2017-01-28  2:58 pkg_postinst shell? Takashi Matsuzawa
@ 2017-01-30  5:29 ` Takashi Matsuzawa
  0 siblings, 0 replies; 2+ messages in thread
From: Takashi Matsuzawa @ 2017-01-30  5:29 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 1480 bytes --]

Hello.
It seems the below patch fixes this problem.

systemd.bbclass: don't block on service restart
https://patchwork.openembedded.org/patch/134317/

(By the way, it may related to my question in another thread, but which is the convenient way to apply this kind of patches to my local build system?)

________________________________
From: Takashi Matsuzawa
Sent: Saturday, January 28, 2017 11:58 AM
To: yocto@yoctoproject.org
Subject: pkg_postinst shell?


Hello Yocto.
I am debugging my recipe, which uses pkg_postinst but does not seem to work as expected.

It runs fine without $D detection.
However, if I try to run it at first boot (skipping with exit 1 if $D is not empty), the board boot seems to hang.
I think error (syntax error, etc.?) happening when it is run on the board, but package manager.

I doubt it is caused by non-existence of '#!/bin/sh' in my script but I am not sure since I am still trying the builds again and again.

i) Regarding the posttest script execution, is there log available so that I can look into (instead of writing out log file by myself from within my script)?  I do not seem to find it in temp folder of my recipes's working directory.

ii) Is '#!/bin/sh' always necessary?

iii) What happens with pkg_postinst_PN_append?  If it is defined without pkg_postinst_PN, it still works and executed?  If i) is true what about '#!/bin/sh' in this case?

If you have qucik suggestions, it is a great help.




[-- Attachment #2: Type: text/html, Size: 2689 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-01-30  5:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-28  2:58 pkg_postinst shell? Takashi Matsuzawa
2017-01-30  5:29 ` Takashi Matsuzawa

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.