Comment 2 for bug 48517

Revision history for this message
In , Miquel van Smoorenburg (miquels) wrote : Re: Bug#328582: /etc/init.d/umountfs: swapoff should be called before unmounting localfs and not after?

On Fri, 2005-09-16 at 13:47 +0200, Marcel Sebek wrote:
> On Fri, Sep 16, 2005 at 10:55:37AM +0200, johannes wrote:
> > hi all,
> >
> > i'm using a swapfile in a file on a local filesystem "/data/swapfile" (not a swap partition!)
> > during shutdown /etc/init.d/umountfs first tries to unmount all local filesystems and then deactivates all swap
> > but unmounting of the partitition wich has the swapfile "/data" fails because the swapfile is still active
> >
> > if i change /etc/init.d/umountfs in such a way that it first calls swapoff and then unmounts the local filesystems it works correctly

It already does that, in the (misnamed) umountnfs.sh script which runs
before umountfs.... read it.

Mike.