Mario A Wojcik <[EMAIL PROTECTED]> posted
[EMAIL PROTECTED], excerpted below, on  Tue, 05 Sep 2006
22:27:57 -0300:

> For a time I have been having the following problem with my Gentoo:
> Each N reinitiated, requests to me to run fsck and it says to me that
> the partition root has problems of inconsistencies.    Once repaired the
> errors, he boot but I must give a Yes to each option.    I saw that way
> that, in they debian for example, is possible to be specified that
> opcion in etc repairs without asking with etc/defaults.

For the option, the fsck manpage says -y is auto-yes for some filesystem
types, and refers you to the appropriate filesystem specific manpage.  I
use reiserfs here, which takes it for some cases but not when used with
--rebuild-tree.

Gentoo's baselayout, at least the 1.12 series now both stable and ~arch
are running, doesn't appear to use the normal /etc/conf.d/<service> config
files for checkroot and checkfs that it uses for other services.  I've
maintained local modifications for some time, however, that use a conf.d
file with my own switches in it, and don't use those in the default
service files at all.

So... to add the -y or any other switches you wish, modify the checkroot
and checkfs scripts directly, either adding your switches directly as
appropriate, or to use a conf.d file with your switches in it, as I did. 

You will of course need to understand a bit of bash scripting to be able
to correctly parse and update the scripts, and will need to ensure that
your make.conf CONFIG_PROTECT and CONFIG_PROTECT_MASK settings are set to
protect your changes so an update doesn't just blindly overwrite them.

-- 
Duncan - List replies preferred.   No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."  Richard Stallman

-- 
[email protected] mailing list

Reply via email to