On 10.10.2011 23:58, Michal Soltys wrote: > A simple check in main dracut script. > > Signed-off-by: Michal Soltys <soltys@xxxxxxxx> > --- > dracut | 7 +++++++ > 1 files changed, 7 insertions(+), 0 deletions(-) > > diff --git a/dracut b/dracut > index 63d4ea6..205f5d1 100755 > --- a/dracut > +++ b/dracut > @@ -418,6 +418,13 @@ else > exit 1 > fi > > +# Verify bash version, curret minimum is 3.1 > +if (( ${BASH_VERSINFO[0]} < 3 || > + ( ${BASH_VERSINFO[0]} == 3 && ${BASH_VERSINFO[1]} < 1 ) )); then > + dfatal 'You need at least Bash 3.1 to use dracut, sorry.' > + exit 1 > +fi > + > dracutfunctions=$dracutbasedir/dracut-functions > export dracutfunctions > pushed -- To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html