On Tue, 8 Nov 2011 11:09:32 +0100
David Coppa <dco...@gmail.com> wrote:

> You can try something like this patch:
> 
> Index: rc
> ===================================================================
> RCS file: /cvs/src/etc/rc,v
> retrieving revision 1.396
> diff -u -p -r1.396 rc
> --- rc        13 Oct 2011 07:54:06 -0000      1.396
> +++ rc        8 Nov 2011 10:08:35 -0000
> @@ -294,8 +294,16 @@ elif [ X"$1" = X"autoboot" ]; then
>               exit 1
>               ;;
>       8)
> -             echo "Automatic file system check failed; help!"
> -             exit 1
> +             echo "File system check failed; trying fsck -y."
> +             fsck -y
> +             case $? in
> +             0)
> +                     ;;
> +             *)
> +                     echo "Ok, now it's really fscked... "
> +                     exit 1
> +                     ;;
> +             esac
>               ;;
>       12)
>               echo "Boot interrupted."

It would depend on your purpose as to whether the above was the best
aproach or making the system read-only with an mfs /tmp /var? and
exported logs. Something which is far easier with OpenBSD than most OS.

Reply via email to