All of lore.kernel.org
 help / color / mirror / Atom feed
* Intentionally failing postinstall scriplets - Yocto Sumo
@ 2019-02-12 10:11 Dhanush K.S
  2019-02-12 10:55 ` Alexander Kanavin
  0 siblings, 1 reply; 2+ messages in thread
From: Dhanush K.S @ 2019-02-12 10:11 UTC (permalink / raw)
  To: Yocto discussion list

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

Hello,

Building an image with Yocto Sumo throws out some warning messages during
do.rootfs. Although I'm partially clear that update-alternatives has
something to do with these warnings, but following the instructions in the
warning and placing the packages in pkg_postinst_ontarget_${PN} () does not
resolve the issue.

What am I missing here and what is the ideal solution to avoid these
warnings?

Here is my *BUILD INFORMATION*

Build Configuration:
BB_VERSION           = "1.37.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal-4.8"
TARGET_SYS           = "arm-poky-linux-gnueabi"
MACHINE              = "arm-cortex-a8"
DISTRO               = "poky"
DISTRO_VERSION       = "2.5"
TUNE_FEATURES        = "arm armv7a vfp neon callconvention-hard cortexa8"
TARGET_FPU           = "hard"
meta-custombsp-ti
meta
meta-poky
meta-yocto-bsp
meta-custom-common      = "<unknown>:<unknown>"
meta-oe              = "master:45ee3c0e98bd3ed81419aaeae1e7324e486161a2"


WARNING: custom-image-1.0-r0 do_rootfs: Intentionally failing
postinstall scriptlets of ['vsftpd', 'dropbear', 'chrony'] to defer
them to first boot is deprecated. Please place them into
pkg_postinst_ontarget_${PN} ().

If deferring to first boot wasn't the intent, then scriptlet failure
may mean an issue in the recipe, or a regression elsewhere.

Details of the failure are in
/home/build_arm-cortex-a8/tmp/work/arm_cortex_a8-poky-linux-gnueabi/custom-image/1.0-r0/temp/log.do_rootfs.

WARNING: custom-image-1.0-r0 do_rootfs: [log_check] abkdkj-image:
found 4 warning messages in the logfile:

[log_check] warning: %post(vsftpd-3.0.3-r0.cortexa8hf_neon) scriptlet
failed, exit status 1

[log_check] warning: %post(dropbear-2017.75-r0.cortexa8hf_neon)
scriptlet failed, exit status 1

[log_check] warning: %post(chrony-3.1-r0.cortexa8hf_neon) scriptlet
failed, exit status 1

[log_check] WARNING: Intentionally failing postinstall scriptlets of
['vsftpd', 'dropbear', 'chrony'] to defer them to first boot is
deprecated. Please place them into pkg_postinst_ontarget_${PN} ().



Thanks,

Dhanush

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

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

* Re: Intentionally failing postinstall scriplets - Yocto Sumo
  2019-02-12 10:11 Intentionally failing postinstall scriplets - Yocto Sumo Dhanush K.S
@ 2019-02-12 10:55 ` Alexander Kanavin
  0 siblings, 0 replies; 2+ messages in thread
From: Alexander Kanavin @ 2019-02-12 10:55 UTC (permalink / raw)
  To: Dhanush K.S; +Cc: Yocto discussion list

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

You need to inspect the rootfs log, to find out precisely why they are
failing. Placing things into _ontarget() is only a part of the instruction,
and applicable only when postinsts have a genuine need to be executed on
the target device. I think your situation is explained by this:

If deferring to first boot wasn't the intent, then scriptlet failure
may mean an issue in the recipe, or a regression elsewhere.

Details of the failure are in
/home/build_arm-cortex-a8/tmp/work/arm_cortex_a8-poky-linux-gnueabi/custom-image/1.0-r0/temp/log.do_rootfs.


Alex

On Tue, 12 Feb 2019 at 11:11, Dhanush K.S <dhanush.ks@gmail.com> wrote:

> Hello,
>
> Building an image with Yocto Sumo throws out some warning messages during
> do.rootfs. Although I'm partially clear that update-alternatives has
> something to do with these warnings, but following the instructions in the
> warning and placing the packages in pkg_postinst_ontarget_${PN} () does
> not resolve the issue.
>
> What am I missing here and what is the ideal solution to avoid these
> warnings?
>
> Here is my *BUILD INFORMATION*
>
> Build Configuration:
> BB_VERSION           = "1.37.0"
> BUILD_SYS            = "x86_64-linux"
> NATIVELSBSTRING      = "universal-4.8"
> TARGET_SYS           = "arm-poky-linux-gnueabi"
> MACHINE              = "arm-cortex-a8"
> DISTRO               = "poky"
> DISTRO_VERSION       = "2.5"
> TUNE_FEATURES        = "arm armv7a vfp neon callconvention-hard cortexa8"
> TARGET_FPU           = "hard"
> meta-custombsp-ti
> meta
> meta-poky
> meta-yocto-bsp
> meta-custom-common      = "<unknown>:<unknown>"
> meta-oe              = "master:45ee3c0e98bd3ed81419aaeae1e7324e486161a2"
>
>
> WARNING: custom-image-1.0-r0 do_rootfs: Intentionally failing postinstall scriptlets of ['vsftpd', 'dropbear', 'chrony'] to defer them to first boot is deprecated. Please place them into pkg_postinst_ontarget_${PN} ().
>
> If deferring to first boot wasn't the intent, then scriptlet failure may mean an issue in the recipe, or a regression elsewhere.
>
> Details of the failure are in /home/build_arm-cortex-a8/tmp/work/arm_cortex_a8-poky-linux-gnueabi/custom-image/1.0-r0/temp/log.do_rootfs.
>
> WARNING: custom-image-1.0-r0 do_rootfs: [log_check] abkdkj-image: found 4 warning messages in the logfile:
>
> [log_check] warning: %post(vsftpd-3.0.3-r0.cortexa8hf_neon) scriptlet failed, exit status 1
>
> [log_check] warning: %post(dropbear-2017.75-r0.cortexa8hf_neon) scriptlet failed, exit status 1
>
> [log_check] warning: %post(chrony-3.1-r0.cortexa8hf_neon) scriptlet failed, exit status 1
>
> [log_check] WARNING: Intentionally failing postinstall scriptlets of ['vsftpd', 'dropbear', 'chrony'] to defer them to first boot is deprecated. Please place them into pkg_postinst_ontarget_${PN} ().
>
>
>
> Thanks,
>
> Dhanush
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>

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

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

end of thread, other threads:[~2019-02-12 10:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-12 10:11 Intentionally failing postinstall scriplets - Yocto Sumo Dhanush K.S
2019-02-12 10:55 ` Alexander Kanavin

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.