<?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>4490</bug_id>
          
          <creation_ts>2013-05-13 03:34:44 +0000</creation_ts>
          <short_desc>run-postinsts fails on directdisk image</short_desc>
          <delta_ts>2013-06-20 01:14:31 +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>1.4</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>1.5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jonathan Liu">net147</reporter>
          <assigned_to name="Jonathan Liu">net147</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>Qi.Chen</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>33055</commentid>
    <comment_count>0</comment_count>
    <who name="Jonathan Liu">net147</who>
    <bug_when>2013-05-13 03:34:44 +0000</bug_when>
    <thetext>distro conf:
DISTRO_FEATURES_BACKFILL_CONSIDERED = &quot;sysvinit&quot;
VIRTUAL-RUNTIME_graphical_init_manager = &quot;&quot;
VIRTUAL-RUNTIME_init_manager = &quot;systemd&quot;
PACKAGE_CLASSES = &quot;package_ipk&quot;

image bb:
SYSLINUX_ROOT ?= &quot;root=/dev/sda2&quot;
SYSLINUX_PROMPT = &quot;0&quot;
SYSLINUX_TIMEOUT = &quot;1&quot;
SYSLINUX_LABELS = &quot;boot&quot;
LABELS_append = &quot; ${SYSLINUX_LABELS} &quot;
do_bootdirectdisk[depends] += &quot;${PN}:do_rootfs&quot;
inherit boot-directdisk

# systemctl status run-postinsts
run-postinsts.service - Run pending postinsts
          Loaded: loaded (/lib/systemd/system/run-postinsts.service; disabled)
          Active: failed (Result: exit-code) since Mon 2013-05-13 11:07:03 UTC
         Process: 76 ExecStart=/etc/rcS.d/S98run-postinsts (code=exited, status=1/FAILURE)

May 13 11:07:03 myhost S98run-postinsts[76]: /etc/rcS.d/S98run-postinsts: line 3: can&apos;t create /var/log/postinstall.log: Read-only file system
May 13 11:07:03 myhost S98run-postinsts[76]: rm: can&apos;t remove &apos;//etc/rcS.d/S98run-postinsts&apos;: Read-only file system
May 13 11:07:03 myhost systemd[1]: run-postinsts.service: main process exited, code=exited, status=1/FAILURE
May 13 11:07:03 myhost systemd[1]: Failed to start Run pending postinsts.
May 13 11:07:03 myhost systemd[1]: Unit run-postinsts.service entered failed state

It looks like run-postinsts is executed before checkroot remounts root as rw.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33986</commentid>
    <comment_count>1</comment_count>
    <who name="Jonathan Liu">net147</who>
    <bug_when>2013-06-20 01:14:31 +0000</bug_when>
    <thetext>Fixed by http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=0116e82631a0267be3e5b7c04007980cb4e10171</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>