Menu

#1 Syntax error: bad substitution => kernel panic

open
nobody
None
5
2007-02-04
2007-02-04
No

Hi,

I am trying to use bootchart on Ubuntu Edgy with a customed 2.6.19.2 kernel without any initrd. The standard bootchart version in apt's depository doesn't see my 2.6.19.2 kernel, so I need to use the tar one. I removed the old version, extracted the archive, ran install.sh as root, and add "init=/sbin/bootchard" to grub's kernel line.

At reboot time, I have the following kernel panic message :
/sbin/bootchartd: 104: Syntax eror: Bad substitution
kernel panic - not syncing: Attempted to kill init!

I found nothing on google, and it sounds like a bug doesn't it ?

Thanks.

Discussion

  • Nobody/Anonymous

    Logged In: NO

    After this post, I discovered that Edgy used upstart instead of init, and thought it could be the reason of this error. However, I tried InitNG by adding "init=/sbin/bootchartd bootchart_init=/sbin/initng" to grub and I still have the kernel panic...

     
  • Skippy le Grand Gourou

    Logged In: YES
    user_id=1710257
    Originator: YES

    Hi,

    I had a look at it yesterday and found out the cause of the problem : since Edgy, Ubuntu's /bin/sh links on dash instead of bash. But /sbin/bootchart has a bashism (not a bushism... ;) ) on line 104 : "uptime=${uptime/./}" is forbidden in bash, and as I don't know how to perform subsitution in dash I just changed the first line from #!/bin/sh to #!/bin/bash.

     

Log in to post a comment.

MongoDB Logo MongoDB