Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 177197

Summary: sys-apps/baselayout-2.0.0_alpha[1,2] init.sh bash syntax error
Product: Gentoo Linux Reporter: Avuton Olrich <avuton>
Component: [OLD] baselayoutAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal CC: maekke
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Work with funky kernel versions

Description Avuton Olrich 2007-05-05 16:13:25 UTC
I get an error when init.sh starts, which pretty much makes everything bomb out due to not loading the modules. I'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'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

-[ "$(KV_to_int "$(uname -r)")" -ge "$(KV_to_int "2.6.0")" ]
+[[ "$(KV_to_int "$(uname -r)")" -ge "$(KV_to_int "2.6.0")" ]]
 K26=$?

 if [ "${RC_UNAME}" != "GNU/kFreeBSD" -a "${RC_NAME}" != "VPS" -a "${K26}" = "0" ] ; then
Comment 1 Roy Marples (RETIRED) gentoo-dev 2007-05-05 19:08:05 UTC
That looks like it does nothing.

What's the ouput of `uname -r`?
Comment 2 Avuton Olrich 2007-05-05 19:14:34 UTC
2.6.20.11-sd48, believe the first time it happened it was actually 2.6.20.4-ck1
Comment 3 Roy Marples (RETIRED) gentoo-dev 2007-05-05 19:27:16 UTC
Created attachment 118282 [details, diff]
Work with funky kernel versions

Try this patch :)
Comment 4 Avuton Olrich 2007-05-05 20:21:29 UTC
OK, that fixed this bug, and #177175, I believe. Way to hit two birds with one stone. Thanks!
Comment 5 Roy Marples (RETIRED) gentoo-dev 2007-05-05 20:25:55 UTC
*** Bug 177175 has been marked as a duplicate of this bug. ***