<?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>177197</bug_id>
          
          <creation_ts>2007-05-05 16:13 0000</creation_ts>
          <short_desc>sys-apps/baselayout-2.0.0_alpha[1,2] init.sh bash syntax error</short_desc>
          <delta_ts>2007-05-05 20:25:55 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>baselayout</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>avuton@gmail.com</reporter>
          <assigned_to>base-system@gentoo.org</assigned_to>
          <cc>maekke@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>avuton@gmail.com</who>
            <bug_when>2007-05-05 16:13:25 0000</bug_when>
            <thetext>I get an error when init.sh starts, which pretty much makes everything bomb out due to not loading the modules. I&apos;ve needed this fix in alpha1, but never sent it in due to thinking it was probably a known issue. To fix it I crowbar&apos;d in the following:

diff --git a/sh.Linux/init.sh b/sh.Linux/init.sh
index fc19bdd..665dcd7 100755
--- a/sh.Linux/init.sh
+++ b/sh.Linux/init.sh
@@ -130,7 +130,7 @@ if [ -r /sbin/livecd-functions.sh ] ; then
        livecd_read_commandline
 fi

-[ &quot;$(KV_to_int &quot;$(uname -r)&quot;)&quot; -ge &quot;$(KV_to_int &quot;2.6.0&quot;)&quot; ]
+[[ &quot;$(KV_to_int &quot;$(uname -r)&quot;)&quot; -ge &quot;$(KV_to_int &quot;2.6.0&quot;)&quot; ]]
 K26=$?

 if [ &quot;${RC_UNAME}&quot; != &quot;GNU/kFreeBSD&quot; -a &quot;${RC_NAME}&quot; != &quot;VPS&quot; -a &quot;${K26}&quot; = &quot;0&quot; ] ; then</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>uberlord@gentoo.org</who>
            <bug_when>2007-05-05 19:08:05 0000</bug_when>
            <thetext>That looks like it does nothing.

What&apos;s the ouput of `uname -r`?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>avuton@gmail.com</who>
            <bug_when>2007-05-05 19:14:34 0000</bug_when>
            <thetext>2.6.20.11-sd48, believe the first time it happened it was actually 2.6.20.4-ck1</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>uberlord@gentoo.org</who>
            <bug_when>2007-05-05 19:27:16 0000</bug_when>
            <thetext>Created an attachment (id=118282)
Work with funky kernel versions

Try this patch :)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>avuton@gmail.com</who>
            <bug_when>2007-05-05 20:21:29 0000</bug_when>
            <thetext>OK, that fixed this bug, and #177175, I believe. Way to hit two birds with one stone. Thanks!</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>uberlord@gentoo.org</who>
            <bug_when>2007-05-05 20:25:55 0000</bug_when>
            <thetext>*** Bug 177175 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>118282</attachid>
            <date>2007-05-05 19:27 0000</date>
            <desc>Work with funky kernel versions</desc>
            <filename>kv.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">SW5kZXg6IHNoL2Z1bmN0aW9ucy5zaAo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBzaC9mdW5jdGlvbnMuc2gJKHJl
dmlzaW9uIDI2ODQpCisrKyBzaC9mdW5jdGlvbnMuc2gJKHdvcmtpbmcgY29weSkKQEAgLTEwNCwx
MSArMTA0LDEyIEBACiBLVl90b19pbnQoKSB7CiAJWyAteiAkMSBdICYmIHJldHVybiAxCiAKLQls
b2NhbCBLVl9NQUpPUj0kezElJS4qfQotCWxvY2FsIHg9JHsxIyoufQorCWxvY2FsIHg9JHsxJSUt
Kn0KKwlsb2NhbCBLVl9NQUpPUj0ke3glJS4qfQorCXg9JHt4IyoufQogCWxvY2FsIEtWX01JTk9S
PSR7eCUlLip9CiAJeD0kezEjKi4qLn0KLQlsb2NhbCBLVl9NSUNSTz0ke3glJS0qfQorCWxvY2Fs
IEtWX01JQ1JPPSR7eCUlLip9CiAJbG9jYWwgS1ZfaW50PSQoKCR7S1ZfTUFKT1J9ICogNjU1MzYg
KyAke0tWX01JTk9SfSAqIDI1NiArICR7S1ZfTUlDUk99ICkpCiAKIAkjIFdlIG1ha2UgdmVyc2lv
biAyLjIuMCB0aGUgbWluaW11bSB2ZXJzaW9uIHdlIHdpbGwgaGFuZGxlIGFzCg==
</data>        

          </attachment>
    </bug>

</bugzilla>