<?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>6632</bug_id>
          
          <creation_ts>2014-08-15 08:36:52 +0000</creation_ts>
          <short_desc>[p1022ds] /usr/sbin/run-postinsts: Permission denied</short_desc>
          <delta_ts>2014-08-25 07:42:54 +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>BSPs</product>
          <component>bsps-meta-fsl-ppc</component>
          <version>1.7</version>
          <rep_platform>Other</rep_platform>
          <op_sys>ppc</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.7</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yi Zhao">yi.zhao</reporter>
          <assigned_to name="Zhenhua Luo">zhenhua.luo</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>b51469</cc>
    
    <cc>ke.zou</cc>
    
    <cc>yi.zhao</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Used to work)</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>45147</commentid>
    <comment_count>0</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2014-08-15 08:36:52 +0000</bug_when>
    <thetext>Image location: http://autobuilder.yoctoproject.org/pub/nightly/20140811-2/machines/p1022ds/

When boot up the system, I got the following error:
/etc/rcS.d/S99run-postinsts: line 3: /usr/sbin/run-postinsts: Permission denied

I checked the script /usr/sbin/run-postinsts, it has no execute permission.
root@p1022ds:/var/log# file /usr/sbin/run-postinsts 
/usr/sbin/run-postinsts: POSIX shell script, ASCII text executable
root@p1022ds:/var/log# ls -l /usr/sbin/run-postinsts 
-rw-r--r-- 1 root root 1657 Aug 11 21:02 /usr/sbin/run-postinsts
root@p1022ds:/var/log# 

This issue is very weird. The following line in meta/recipes-devtools/run-postinsts/run-postinsts_1.0.bb should make sure the script has right permission:
install -m 0755 ${WORKDIR}/run-postinsts ${D}${sbindir}/

I don&apos;t know why it has no effect in p1022ds image rootfs. I checked other arch rootfs (beaglebone, edgerouter and mpc8315e), this script has right permission on all of them.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45166</commentid>
    <comment_count>1</comment_count>
    <who name="Benlei Xu">b51469</who>
    <bug_when>2014-08-19 10:56:59 +0000</bug_when>
    <thetext>Hello,
The attachment is the log of p1022ds board. I had have a test on p1022ds board according to your image location. But I have not got any infomation that your found on p1022ds board. May I could know the deployment of your board ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45178</commentid>
    <comment_count>2</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2014-08-20 06:43:14 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Hello,
&gt; The attachment is the log of p1022ds board. I had have a test on p1022ds
&gt; board according to your image location. But I have not got any infomation
&gt; that your found on p1022ds board. May I could know the deployment of your
&gt; board ?

Hi,
I deployed the rootfs via nfs. Here are the details:
1. Download the image
2. Extract the rootfs to nfs root directory: sudo tar xpf core-image-sato-sdk-p1022ds-20140811201336.rootfs.tar.gz -C /export/rootfs/
You could check the run-postinsts after  extract. There is no execute permission for it:
$ ls -l usr/sbin/run-postinsts 
-rw-r--r-- 1 root root 1657 Aug 12 05:02 usr/sbin/run-postinsts
3. Boot up the system via nfs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45185</commentid>
    <comment_count>3</comment_count>
    <who name="Benlei Xu">b51469</who>
    <bug_when>2014-08-21 07:45:17 +0000</bug_when>
    <thetext>Hi,
    I have a test on p1022ds board employ your rootfs via nfs and the result is same with you. 
    I get a poky and meta-fsl-ppc on the http://git.yoctoproject.org/ and build a rootfs, however, there is no any problem that you meet.
    In order to further confirmation the problem, I obtain another rootfs core-image-sato-sdk-p1022ds-20140815130938.rootfs.tar.gz and have a test on p1022ds board via nfs, and there is no any problem.
    So I think that problem of core-image-sato-sdk-p1022ds-20140811201336.rootfs.tar.gz maybe a accidental bug. And you can use the latter packges.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45245</commentid>
    <comment_count>4</comment_count>
    <who name="Zhenhua Luo">zhenhua.luo</who>
    <bug_when>2014-08-25 07:42:54 +0000</bug_when>
    <thetext>The issue can&apos;t be reproduced with latest images.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>