On Fri, 26 Jul 2019 at 23:38, Baho Utot <baho-u...@columbus.rr.com> wrote:

>
> On 7/26/19 6:21 PM, Bruce Dubbs wrote:
> > On 7/26/19 5:03 PM, Baho Utot wrote:
> >>
> >> On 7/26/19 5:49 PM, Bruce Dubbs wrote:
> >>> On 7/26/19 4:15 PM, Baho Utot wrote:
> >>>> Why is swap enabled so early in the boot process?
> >>>>
> >>>> If you are using LFS on a raspberry pi you must do the following:
> >>>>
> >>>> mv /etc/rc.d/rcS.d/S20swap /etc/rc.d/rcS.d/S60swap
> >>>>
> >>>> otherwise the system comes up with no swap.
> >>>>
> >>>> After making the change swap will come up upon boot.
> >>>>
> >>>>
> >>>> Doing  'mount -a' after the system comes up will result in swap
> >>>> working
> >>>>
> >>>> I don't see where it would affect other platforms as I have LFS
> >>>> running on x86_64, i386 and raspberry pi {1,2,3} ( soon to be pi4).
> >>>
> >>> Historically you would want to mount swap before you mount /
> >>> read-write.  In today's environment, you probably don't need swap at
> >>> all.
> >>>
> >>> What type of error do you get when trying to mount swap on the rpi?
> >>> That said, you may have a timing issue with the HW, but I'm just
> >>> guessing.
> >
> >> The swap doesn't come up, I am using a swapfile so I believe that
> >> root will need to be mounted rw before swap can be enabled.
> >
> > Hmm.  I've never run across anyone using a swapfile for the primary
> > swap before.  Your solution seems to be good for your rare
> > configuration. You could also create something like S99local to run
> > 'swapon -a'.
> >
> >   -- Bruce
> >
>
> Well when you only have 512MB of ram (raspberry pi) you will need swap.
> Swapfile is easy to setup and doesn't require a partition.
>
> I would propose moving S20swap to S60swap in the book as it will not
> affect most systems
>

The current setting in the book doesn't affect "most systems" now with the
exception, apparently, being yours :-)

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

Reply via email to