<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>12768</bug_id>
          
          <creation_ts>2018-06-03 16:57:40 +0000</creation_ts>
          <short_desc>Please place them into pkg_postinst_ontarget_${PN} ()</short_desc>
          <delta_ts>2018-07-16 20:45:16 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>2.5.1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.6 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Robert Berger">pokylinux</reporter>
          <assigned_to name="Robert Berger">pokylinux</assigned_to>
          <cc>alex.kanavin</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>80690</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Berger">pokylinux</who>
    <bug_when>2018-06-03 16:57:40 +0000</bug_when>
    <thetext>I see this in my build logs:

WARNING: custom-packagegroup-image-1.0-r0 do_rootfs: sysvinit-inittab.postinst returned 1, marking as unpacked only, configuration required on target.
WARNING: custom-packagegroup-image-1.0-r0 do_rootfs: Intentionally failing postinstall scriptlets of [&apos;sysvinit-inittab&apos;] to defer them to first boot is deprecated. Please place them into pkg_postinst_ontarget_${PN} ().
If deferring to first boot wasn&apos;t the intent, then scriptlet failure may mean an issue in the recipe, or a regression elsewhere.
Details of the failure are in /tmp/yocto-autobuilder/yocto-autobuilder/yocto-worker/res-custom-sumo-multi-v7-core-image-minimal/build/build/tmp/work/multi_v7_ml-poky-linux-gnueabi/custom-packagegroup-image/1.0-r0/temp/log.do_rootfs.
WARNING: custom-packagegroup-image-1.0-r0 do_rootfs: sysvinit-inittab.postinst returned 1, marking as unpacked only, configuration required on target.
WARNING: custom-packagegroup-image-1.0-r0 do_rootfs: Intentionally failing postinstall scriptlets of [&apos;sysvinit-inittab&apos;] to defer them to first boot is deprecated. Please place them into pkg_postinst_ontarget_${PN} ().
If deferring to first boot wasn&apos;t the intent, then scriptlet failure may mean an issue in the recipe, or a regression elsewhere.
Details of the failure are in /tmp/yocto-autobuilder/yocto-autobuilder/yocto-worker/res-custom-sumo-multi-v7-core-image-minimal/build/build/tmp/work/multi_v7_ml-poky-linux-gnueabi/custom-packagegroup-image/1.0-r0/temp/log.do_rootfs.
WARNING: custom-packagegroup-image-1.0-r0 do_rootfs: [log_check] custom-packagegroup-image: found 2 warning messages in the logfile:
[log_check] WARNING: Intentionally failing postinstall scriptlets of [&apos;sysvinit-inittab&apos;] to defer them to first boot is deprecated. Please place them into pkg_postinst_ontarget_${PN} ().
[log_check] WARNING: Intentionally failing postinstall scriptlets of [&apos;sysvinit-inittab&apos;] to defer them to first boot is deprecated. Please place them into pkg_postinst_ontarget_${PN} ().

since I don&apos;t do anything special about sysvinit except for this bbappend

# use runlevel 3 instead of 5 and
# replace funny /bin/getty script with /sbin/getty
do_install_append() {
        sed -i &apos;s/^id:5:initdefault/id:3:initdefault/&apos; ${D}${sysconfdir}/inittab
}

I am not sure if it&apos;s me who caused this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80691</commentid>
    <comment_count>1</comment_count>
    <who name="Robert Berger">pokylinux</who>
    <bug_when>2018-06-03 17:00:27 +0000</bug_when>
    <thetext>boot log on first boot:

Configuring packages on first boot....
 (This may take several minutes. Please do not power off the machine.)
Running postinst /etc/ipk-postinsts/000-sysvinit-inittab...
update-rc.d: /etc/init.d/run-postinsts exists during rc.d purge (continuing)
 Removing any system startup links for run-postinsts ...
  /etc/rcS.d/S99run-postinsts
INIT: Entering runlevel: 3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80742</commentid>
    <comment_count>2</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2018-06-08 09:39:55 +0000</bug_when>
    <thetext>I&apos;m certain that this patch should simply be backported:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=524e84028eccf8b2077f356efa96aba897e3e183

Robert, can you confirm that it fixes the issue and if so, send the backport to the oe-core list please?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80829</commentid>
    <comment_count>3</comment_count>
    <who name="Robert Berger">pokylinux</who>
    <bug_when>2018-06-20 05:54:38 +0000</bug_when>
    <thetext>It looks like the patch made it into oe-core sumo-next[1]

[1] http://cgit.openembedded.org/openembedded-core/commit/?h=sumo-next&amp;id=f9f045ce9cbd441375f15911f3535cb1e304ba5b

So I am not sure where to backport it to.

I added it to my local copy of poky and will test it locally.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81114</commentid>
    <comment_count>4</comment_count>
    <who name="Robert Berger">pokylinux</who>
    <bug_when>2018-07-16 20:45:16 +0000</bug_when>
    <thetext>It looks like the patch made it into oe-core sumo-next[1]

[1] http://cgit.openembedded.org/openembedded-core/commit/?h=sumo-next&amp;id=f9f045ce9cbd441375f15911f3535cb1e304ba5b

and my local tests look good</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>