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

Setting FSCKFIX=yes on certain machines



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.)
-- 
Martin Michlmayr
http://www.cyrius.com/


Reply to: