Affichage des articles dont le libellé est ubuntu. Afficher tous les articles
Affichage des articles dont le libellé est ubuntu. Afficher tous les articles

dimanche 13 octobre 2013

insserv: Script jexec is broken: incomplete LSB comment.

 Today I updated my debian wheezy and saw the following error in the terminal:

insserv: Script jexec is broken: incomplete LSB comment. insserv: missing `Default-Stop:'   entry: please add even if empty. insserv: Default-Stop  undefined, assuming empty stop  runlevel(s) for script `jexec'


The fix is very easy:

#
### BEGIN INIT INFO
# Provides: binfmt_misc
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Start: 0 6
# chkconfig: 12345 95 05
# Description: Supports the direct execution of binary formats.
### END INIT INFO
#



Anybody who unerstands LSB comments immediately sees the duplicate Default-Start entries, change # Default-Start: 0 6 to read # Default-Stop: 0 6, this should fix it:

#
### BEGIN INIT INFO
# Provides: binfmt_misc
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# chkconfig: 12345 95 05
# Description: Supports the direct execution of binary formats.
### END INIT INFO
#





Note that the devs who maintain this have already fucked-up their LSB comment ... see http://www.novell.com/support/kb/doc.php?id=7010013.

Some will never learn.

jeudi 1 avril 2010

Ubuntu cares?

I had a few issues with my ubuntu. After quite some time, I decided to investigate and found the following:

ls -la /bin/sh
lrwxrwxrwx 1 root root 4 2009-05-27 16:32 /bin/sh -> dash

To speed up boot time on ubuntu, which has never been an issue if you ask me, they replaced bash with dash as the default shell (sh). So now, /bin/sh is linked to /bin/dash.

They could have changed all their boot stuff to use dash instead of bash without breaking anybody's code, but hey, that would only be half the fun. Don't tell us that would be too much work, you had to convert all your scripts to be compatible with the new shell anyway. The dash [s]hell supports a subset of what bash does, apparently only POSIX-compliant stuff. So here we are again, I'm getting "-sh: typeset: not found", let and $RANDOM that do not work anymore among many things.

Read here for more info: https://wiki.ubuntu.com/DashAsBinSh