Guillaume Rousse <[EMAIL PROTECTED]> writes:
> Pixel a écrit :
>
> > ben c'est ce qu'est fait!
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^
> french speaking forbidden here ! Pan sur le bec ! :-)
sorry, i thought it was chmouel-sent only :-/
>
> > %post
> > if [ -f /etc/lilo.conf ]; then
> > if [ -x /usr/sbin/detectloader ]; then
> > LOADER=$(/usr/sbin/detectloader)
> > if [ "$LOADER" = "LILO" ]; then
> > /sbin/lilo > /dev/null
> > fi
> > fi
> > fi
>
> I would prefer postinstall script limitis itself to warn user he has to
> run lilo, not running it itself. If lilo.conf is not in a valid state,
> result could be rather dangereous.
If you use lilo, update lilo and don't run lilo, you won't boot! The only
problem is if detectloader is wrong, but that shouldn't happen ;p