<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>206703</bug_id>
          
          <creation_ts>2008-01-19 20:49 0000</creation_ts>
          <short_desc>sys-kernel/genkernel-3.4.9 - ls: : No such file or directory&quot; message during boot</short_desc>
          <delta_ts>2008-04-08 16:15:19 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Hosted Projects</product>
          <component>genkernel</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>mrfree@infinito.it</reporter>
          <assigned_to>genkernel@gentoo.org</assigned_to>
          <cc>billie@gentoo.org</cc>
    
    <cc>billydv1@verizon.net</cc>
    
    <cc>jakub@gentoo.org</cc>
    
    <cc>pentek.imre@gmail.com</cc>

      

      
          <long_desc isprivate="0">
            <who>mrfree@infinito.it</who>
            <bug_when>2008-01-19 20:49:03 0000</bug_when>
            <thetext>I noticed a strange message after the modules in the initrd load, a message like &quot;ls: command not found&quot; or something like that.

Reproducible: Always</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>agaffney@gentoo.org</who>
            <bug_when>2008-01-19 22:54:46 0000</bug_when>
            <thetext>What kernel commandline are you using?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>agaffney@gentoo.org</who>
            <bug_when>2008-01-19 22:55:45 0000</bug_when>
            <thetext>Also, does it actually hurt anything, or is it just cosmetic?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mrfree@infinito.it</who>
            <bug_when>2008-01-20 00:32:20 0000</bug_when>
            <thetext>The system seems to work well, it boots correctly and I&apos;m using it since about 6 hours without any problems (but I thing the problem should eventually affects the boot process only, doesn&apos;t it?).

This is my cmdline:
dolvm processor.max_cstate=2 libata.atapi_enabled=1 root=/dev/ram0 init=/linuxrc real_root=/dev/vg/root CONSOLE=/dev/tty1 quiet resume=file:/dev/dm-0:0x44ed0</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2008-01-23 16:30:54 0000</bug_when>
            <thetext>*** Bug 207157 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gentoo.bugs@pointb.co.uk</who>
            <bug_when>2008-01-24 15:09:37 0000</bug_when>
            <thetext>I&apos;ve got to test, but I think this &quot;ls&quot; error could be coming from this line in initrd.scripts that comes with genkernel

local device=$(ls -l &quot;${REAL_RESUME}&quot; | sed &apos;s/\ */ /g&apos; | cut -d \  -f 6-7 | sed &apos;s/,\ */:/&apos;)

I&apos;ve found that REAL_RESUME is set as follows:

REAL_RESUME=&quot;/dev/mapper/swap&quot;

What happens if that /dev/mapper/swap there? 
Surely the ls will output an error as it does when you try at the command line:

rjs generic # REAL_RESUME=&quot;/dev/mapper/swap&quot;
rjs generic # ls -l &quot;${REAL_RESUME}&quot; | sed &apos;s/\ */ /g&apos; | cut -d \  -f 6-7 | sed &apos;s/,\ */:/&apos;
ls: cannot access /dev/mapper/swap: No such file or directory
rjs #

I&apos;ll see if I can test with my next livecd build.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gentoo.bugs@pointb.co.uk</who>
            <bug_when>2008-01-24 15:10:25 0000</bug_when>
            <thetext>Sorry, that should have been:

What happens if that /dev/mapper/swap device is not there? 

oops ;-)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2008-01-25 20:36:34 0000</bug_when>
            <thetext>(In reply to comment #6)
&gt; What happens if that /dev/mapper/swap device is not there? 

Not using anything like that; same message.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>agaffney@gentoo.org</who>
            <bug_when>2008-02-02 20:35:47 0000</bug_when>
            <thetext>This has been fixed in SVN. Thanks.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2008-02-05 08:28:11 0000</bug_when>
            <thetext>*** Bug 208950 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>billydv1@verizon.net</who>
            <bug_when>2008-02-06 13:52:43 0000</bug_when>
            <thetext>To  fix  until next  release  of  genkernel

open terminal and do
svn co svn://anonsvn.gentoo.org/genkernel/trunk

this will give you svn version in your home folder. Open file manager and go to /usr/share/genkernel and delete generic folder and replace with generic folder from svn version. Don&apos;t forget to delete .svn folder inside generic folder from svn. Redo your kernel with your now updated genkernel and error message gone.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wolf31o2@gentoo.org</who>
            <bug_when>2008-02-14 04:32:37 0000</bug_when>
            <thetext>I just released genkernel 3.4.10_pre1, which has this fix included.  Feel free to REOPEN this bug or make a comment if it is not resolved.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>Hendrik@Lemelson.de</who>
            <bug_when>2008-04-08 16:15:19 0000</bug_when>
            <thetext>(In reply to comment #11)
&gt; I just released genkernel 3.4.10_pre1, which has this fix included.  Feel free
&gt; to REOPEN this bug or make a comment if it is not resolved.
&gt; 

Method swsusp_resume() in /usr/share/genkernel/generic/initrd.scripts still uses unchecked variable $REAL_RESUME.

I suggest to add a check to the method. Maybe by doing the following:

swsusp_resume() {
        # determine swap resume partition
        if [ -z &quot;$REAL_RESUME&quot; ]
        then
                bad_msg &quot;Device to resume from is not set!&quot;
                return 1
        fi
        local device=$(ls -l &quot;${REAL_RESUME}&quot; | sed &apos;s/\ */ /g&apos; | cut -d \  -f 6-7 | sed &apos;s/,\ */:/&apos;)
        [ -f /sys/power/resume ] &amp;&amp; echo &quot;${device}&quot; &gt; /sys/power/resume
        return 0
}</thetext>
          </long_desc>
      
    </bug>

</bugzilla>