| Summary: | sys-apps/baselayout-2.0.0_alpha[1,2] init.sh bash syntax error | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Avuton Olrich <avuton> |
| Component: | [OLD] baselayout | Assignee: | 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 | ||
That looks like it does nothing. What's the ouput of `uname -r`? 2.6.20.11-sd48, believe the first time it happened it was actually 2.6.20.4-ck1 Created attachment 118282 [details, diff]
Work with funky kernel versions
Try this patch :)
OK, that fixed this bug, and #177175, I believe. Way to hit two birds with one stone. Thanks! *** Bug 177175 has been marked as a duplicate of this bug. *** |
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