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 <[email protected]> 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 > [email protected] > https://lists.yoctoproject.org/listinfo/yocto >
-- _______________________________________________ yocto mailing list [email protected] https://lists.yoctoproject.org/listinfo/yocto
