<?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>5244</bug_id>
          
          <creation_ts>2013-09-20 09:56:37 +0000</creation_ts>
          <short_desc>Psplash fails to unmount /mnt/.psplash</short_desc>
          <delta_ts>2013-11-18 22:16:29 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>11</classification_id>
          <classification>Runtime</classification>
          <product>System Startup</product>
          <component>system-startup</component>
          <version>1.5</version>
          <rep_platform>Other</rep_platform>
          <op_sys>arm</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.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Diego">diego.ml</reporter>
          <assigned_to name="Saul Wold">sgw</assigned_to>
          <cc>kevin.tian</cc>
    
    <cc>otavio</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</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>37013</commentid>
    <comment_count>0</comment_count>
    <who name="Diego">diego.ml</who>
    <bug_when>2013-09-20 09:56:37 +0000</bug_when>
    <thetext>I&apos;m on a core-image-base image on a i.MX6Q Boundary Devices Nitrogen6x.

One of the last things I get at boot, just before login, is:

umount: /mnt/.psplash: target is busy.
        (In some cases useful info about processes that use            
         the device is found by lsof(8) or fuser(1))

and the same at shutdown:
Disabling non-boot CPUs ...
CPU1: shutdown
CPU2: shutdown
CPU3: shutdown
Power down.
umount: /mnt/.psplash: target is busy.
        (In some cases useful info about processes that use
         the device is found by lsof(8) or fuser(1))

If I try to &quot;umount /mnt/.psplash&quot; after login I can unmount it correctly, so it&apos;s probably just trying to umount it too early.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37147</commentid>
    <comment_count>1</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2013-09-24 21:58:46 +0000</bug_when>
    <thetext>Is this reproducible after the first boot? I was able to reproduce the first 
failure during boot once, but not on subsequent boot ups.

Can you add an &quot;fuser /mnt/.psplash to your /etc/init.d/rc I think there is a 
race condition and the psplash is not finishing before
the umount occurs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37157</commentid>
    <comment_count>2</comment_count>
    <who name="Diego">diego.ml</who>
    <bug_when>2013-09-25 08:03:59 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Is this reproducible after the first boot? I was able to reproduce the first 
&gt; failure during boot once, but not on subsequent boot ups.
&gt; 
&gt; Can you add an &quot;fuser /mnt/.psplash to your /etc/init.d/rc I think there is
&gt; a 
&gt; race condition and the psplash is not finishing before
&gt; the umount occurs.

Yeah, it&apos;s just a matter of istants, because I&apos;ve added hacky line to rc:
        fuser /mnt/.psplash
        cat /proc/$(fuser /mnt/.psplash | cut -d&quot; &quot; -f1)/comm
and sometimes I get:
73 
psplash
while sometimes I get:
73 
cat: /proc/73/comm: No such file or directory
and then I get no error from umount.

So yeah, umount should wait for psplash to finish, not just hope it finished.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37955</commentid>
    <comment_count>3</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2013-10-15 22:30:24 +0000</bug_when>
    <thetext>Since you can get consistent failure, can you try to following.

Since we know psplash is exiting, it&apos;s safe to umount regardless of the state 
of the process, so I wonder if the -l (lazy option) would help and if not that, 
the -f (force), again just edit the /etc/init.d/rc file and add that option to 
the umount and reboot. 

Please report the results here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38192</commentid>
    <comment_count>4</comment_count>
    <who name="Diego">diego.ml</who>
    <bug_when>2013-10-28 09:52:38 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; Since you can get consistent failure, can you try to following.
&gt; 
&gt; Since we know psplash is exiting, it&apos;s safe to umount regardless of the
&gt; state 
&gt; of the process, so I wonder if the -l (lazy option) would help and if not
&gt; that, 
&gt; the -f (force), again just edit the /etc/init.d/rc file and add that option
&gt; to 
&gt; the umount and reboot. 
&gt; 
&gt; Please report the results here.

Adding the &quot;-l&quot; option to umount seems to fix the problem. Tried 10 reboots and I did not encounter the error anymore.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38887</commentid>
    <comment_count>5</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2013-11-18 22:16:29 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=f9729f473d60d126723f212f289c8e553f4dfa02</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>