[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Setting FSCKFIX=yes on certain machines

On Aug 14, 2008, at 4:50 AM, Martin Michlmayr wrote:

We have to set FSCKFIX=yes in /etc/default/rcS on machines that don't
have any I/O devices to follow the boot process, otherwise fsck might
prompt the user to press a key and this is not possible.

This is mostly needed on NAS devices.  They all have ttyS0 which means
that we cannot modify /etc/default/rcS automatically if there's no
ttySx.  Instead we have to hard code the specific devices we're aware
of that might have ttyS0 (or another output devices) but where users
typically don't have a serial console hooked up.

Since this mostly applies to NAS devices, I thought of simply putting
          sed -i "s/^FSCKFIX=no$/FSCKFIX=yes/" /target/etc/default/rcS
in the postinst of flash-kernel.  This is not the most generic way of
solving this but sounds like the best option to me right now.  I think
the can look for a more generic solutions once we're aware of other
devices that need this.

Any objections to this approach?

(Note that /etc/default/rcS is not a conffile so we may modify it.)

It would probably be a good idea to put a comment into /etc/default/ rcS to the effect that this is being done, so we can find it later when we have a more generic fix...


Reply to: