Bug#398312: Re: Bug#398312: INITRDSTART='none' doesn't work

martin f krafft madduck at debian.org
Mon Nov 13 11:21:53 CET 2006


also sprach dean gaudet <dean at arctic.org> [2006.11.13.1107 +0100]:
> which causes the is_true() in info() to return 1 which causes the set -e 
> to terminate the script.

What shell are you using?

Does it work if you change info() to

info()
{
  is_true ${VERBOSE:-false} && write I "$@" || :
}

> perhaps this bug report should be titled "set -e considered
> harmful" :)
> 
> set -e would be better if it actually caused sh to complain when
> the error occured... instead it's the worst of both worlds:
> scripts exit due to programming errors and then you have no idea
> they exited early.

I do not see the problem with dash or zsh, so I guess you must be
using bash then. I wonder whether it isn't bash's fault, but I do
agree that the info function should not return false when
VERBOSE=false.

Fixed merged into 2.5.6-5.

> is it really that hard to start only the root array?

What is the root array? What if you have LVM on two arrays providing
the root filesystem? Trust me, it's not that easy, and I cannot make
any drastic changes anymore due to the freeze.

-- 
 .''`.   martin f. krafft <madduck at debian.org>
: :'  :  proud Debian developer, author, administrator, and user
`. `'`   http://people.debian.org/~madduck - http://debiansystem.info
  `-  Debian - when you have better things to do than fixing systems
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature (GPG/PGP)
Url : http://lists.alioth.debian.org/pipermail/pkg-mdadm-devel/attachments/20061113/16d43c1c/attachment.pgp


More information about the pkg-mdadm-devel mailing list