Handbook Errata (Section 12.12. Adding Swap Space)

Ross Kilgariff ross at ninjakiwi.com
Tue Oct 28 20:17:58 UTC 2014


Hi,

I noticed that *Example 12.2* in section 12.12 of the handbook
<https://www.freebsd.org/doc/handbook/adding-swap-space.html> does not work
verbatim.

I believe this is due to commit r255265:

  Enable "late" option when a file= option is specified in /etc/fstab.
  The file= option requires rw mount where the backing store exists but
  it does not work because rc.d/swap runs before rc.d/fsck.
  Reported by:	wblock

A possible fix would be to change:

swapon -aq

to

swapon -aLq


This ensures swap is enabled even when the "late" option is specified.

Thanks,
Ross


More information about the freebsd-doc mailing list