On Tue, Sep 26, 2006 at 10:19:24AM +0200, Marc Haber wrote:
> On Mon, Sep 25, 2006 at 08:04:18PM -0400, Kristine Daniels wrote:
> > Some of us still run with /usr as a separate filesystem.
> > These scripts fail under that circumstance.
> > There are tests like
> > if [ "$STATEFILE" != "`find $STATEFILE -type f -and -user root -and -group 
> > root -and -not -perm +0022`" ]; then
> > Which cannot be run and give confusing error messages during shutdown 
> > due to /usr being unmounted.
> 
> I don't have these messages on my systems, and I have separate /usr as
> well. Additionally, I think that the error message is quite on the
> point, as a non-existing file is not a plain file.

And the reason you never saw the issue was probably because you had
S35networking in /etc/rc6.d instead of S09networking.
Due to older versions of netbase /etc/init.d/networking was running
prior to /etc/init.d/reboot and /etc/init.d/halt.

I strongly suggest recoding the tests such that they do not rely on /usr,
or update the code to bail very early if /usr is not available.

Thanks,

> 
> I would be willing to give a different error message like "$STATEFILE
> not found" if $STATEFILE does not exist. Is that an acceptable fix for
> you? I am not happy with the fix you suggested, though.
> 
> Greetings
> Marc
> 
> -- 
> -----------------------------------------------------------------------------
> Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
> Mannheim, Germany  |  lose things."    Winona Ryder | Fon: *49 621 72739834
> Nordisch by Nature |  How to make an American Quilt | Fax: *49 621 72739835


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to