Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 177197 - sys-apps/baselayout-2.0.0_alpha[1,2] init.sh bash syntax error
Summary: sys-apps/baselayout-2.0.0_alpha[1,2] init.sh bash syntax error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 177175 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-05-05 16:13 UTC by Avuton Olrich
Modified: 2007-05-05 20:25 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Work with funky kernel versions (kv.patch,559 bytes, patch)
2007-05-05 19:27 UTC, Roy Marples (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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. ***