On Wed, 23 May 2007 22:05:14 +0200
Hans-Werner Hilse <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> On Wed, 23 May 2007 11:59:23 -0500
> Dan Farrell <[EMAIL PROTECTED]> wrote:
> 
> > I know swapon doesn't work on regular files, so to add my swap I
> > need to first use losetup to set up /dev/loop0 as my swap device.
> > Then swapon /dev/loop0 works.  but how can I enable swap on loop0
> > before the initscripts boot (right now I have it done in
> > local.start).  Don't I need to be able to mount the swap as swap
> > right away to resume from it?  Or will it be enought to specify the
> > location?  If not, is there some way to specify loop settings at
> > boot time, on the kernel command line?  
> 
> Check out userspace suspend (http://suspend.sf.net/). It's not in
> portage, but will do what you want since you can resume from an
> initrd. In the initrd, you can open a network connection, mount all
> that stuff (you never told where that looped file is located, so I
> guess it's on r/w NFS) and then resume. It's not implemented at the
> moment, I think, but should be easy to add ("remote suspending" is
> mentioned as an "easy" possibility).
> 
> -hwh
Interesting and helpful, thanks.  
-- 
[EMAIL PROTECTED] mailing list

Reply via email to