On 7 December 2014 at 15:33, William Harrington <[email protected]> wrote:
> > > On Dec 5, 2014, at 13:50, Richard Melville < > [email protected]> wrote: > > > > Just a point of information: the swap script set to run at S20swap in > /etc/rc.d/rcS.d comes up too soon and displays an error message, but > S60swap works OK. > > > > Obviously, working with USB flash media slows everything down a tad. > Maybe the run order could be changed in the book; I can't see that it would > effect anybody else adversely. > > > > Richard > > Swap needs a device to enable swap. If you are using USB and the boot > scripts, which the system will load real fast from an SSD (even a hard > drive) where the rootfs is, the USB device may not be available. You will > need to use rootdelay option in kernel to make sure the USB device settle > down (just like the scsi system, usb operates like the scsi system without > waiting for root), so that swap will be able to be enabled. > > You have two options when using USB parittions to mount. Use rootdelay or > use an initramfs even if your rootfs is not with the USB device. You can > even put a delay in the swap script until the usb device becomes available. > Thanks William -- I'm using rootdelay. I started with rootdelay=10, but I'd managed to reduce it to "1" without swap. A rootdelay=5 allows swap to become enabled, but I still had to create S60swap in rcS. I'd like to keep rootdelay to as low a figure as possible, and with swap enabled "5" seems to be that figure. Yes, I could place a delay in the swap script, but what's the difference between doing that and just running the script at a later time with S60swap? The latter option seems to be cleaner and simpler. Regarding an initramfs, that's something I've been avoiding, and successfully thus far. As I say, I'd rather keep things simple, if at all possible. Richard
-- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
