From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-user+bounces-70390-garchives=archives.gentoo.org@gentoo.org>)
	id 1Idvsy-0004Xk-8F
	for garchives@archives.gentoo.org; Fri, 05 Oct 2007 22:43:08 +0000
Received: from robin.gentoo.org (localhost [127.0.0.1])
	by robin.gentoo.org (8.14.1/8.14.0) with SMTP id l95MVQDR004031;
	Fri, 5 Oct 2007 22:31:26 GMT
Received: from rwcrmhc15.comcast.net (rwcrmhc15.comcast.net [204.127.192.85])
	by robin.gentoo.org (8.14.1/8.14.0) with ESMTP id l95MLHOn023240
	for <gentoo-user@lists.gentoo.org>; Fri, 5 Oct 2007 22:21:17 GMT
Received: from spore.ath.cx ([24.245.14.14])
          by comcast.net (rwcrmhc15) with ESMTP
          id <20071005222116m1500ib0kbe>; Fri, 5 Oct 2007 22:21:16 +0000
Received: from pascal.spore.ath.cx (pascal.spore.ath.cx [192.168.1.100])
	by spore.ath.cx (Postfix) with ESMTP id 9437C54A
	for <gentoo-user@lists.gentoo.org>; Fri,  5 Oct 2007 17:21:16 -0500 (CDT)
Date: Fri, 5 Oct 2007 17:21:16 -0500
From: Dan Farrell <dan@spore.ath.cx>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Bug in /etc/init.d/netmount?
Message-ID: <20071005172116.1129e53f@pascal.spore.ath.cx>
In-Reply-To: <20071005123301.GA19621@server.idefix.lan>
References: <20071005123301.GA19621@server.idefix.lan>
Organization: Spore, Ltd.
X-Mailer: Claws Mail 2.9.1 (GTK+ 2.10.13; x86_64-pc-linux-gnu)
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-Archives-Salt: 2b83f2cf-213f-45de-a4b9-24fcd04a55a1
X-Archives-Hash: af36a3f4d176b7bc18bf092218a3296b

On Fri, 5 Oct 2007 14:33:02 +0200
Matthias Fechner <idefix@fechner.net> wrote:

> Hi,
> 
> I have here a gentoo diskless system which boots over pxeboot and
> mount everything over NFS from my big Gentoo server.
> 
> But at shutdown I get the error message:
> Failed to simply unmount filesystems
>   Unmounting network filesystems (retry #1) ...
> INIT: no more processes left in this runlevel
> 
> After some investigation I found a work-around.
> I deleted the line
> [[ -z $(umount -art ${rcfilesystems} 2>&1) ]]
> in /etc/init.d/netmount (function stop() )
> 
> I think the problem here is that netmount unmounts all partitions
> (including /) and so the shutdown process cannot be continued.
> 
> Should not netmount skip unmounting / ?
> 
> Best regards,
> Matthias
> 

AFAIK you are correct, this is a bug in a few of the initscripts that
don't behave sensibly if the root fs is network mounted.  

Another one that gets messed up is IPTAbles.  I didn't think much of it
because I figured I was the only person in the world crazy enough to
have a diskless router/firewall.  

Interestingly, some of my diskless hosts do all right with this, others
fail to shut down.  

-- 
gentoo-user@gentoo.org mailing list