Date: Tue, 24 Apr 2001 18:09:35 -0700 From: Dima Dorfman <dima@unixfreak.org> To: Jordan Hubbard <jkh@osd.bsdi.com> Cc: freebsd-doc@freebsd.org, nik@freebsd.org Subject: Re: docs/26579: FAQ inconsistency regarding allocating swap with vnconfig Message-ID: <20010425010936.8186A3E2A@bazooka.unixfreak.org> In-Reply-To: <200104181650.f3IGo2B07012@freefall.freebsd.org>; from jkh@osd.bsdi.com on "Wed, 18 Apr 2001 09:50:02 -0700 (PDT)"
next in thread | previous in thread | raw e-mail | index | archive | help
Jordan Hubbard <jkh@osd.bsdi.com> writes: > > [ /etc/rc uses `vnconfig ... && swapon` instead of `vnconfig swap` ] > Hmmmm (a brief pause as he goes off to read the source to vnconfig). > > Well blow me, erm, down! I didn't know vnconfig would do the swapon() > itself if you used the swap argument. I agree that this should be > changed as you say. Is anybody actually going to fix this now that RELENG_4 is unfrozen? Here's the obvious patch. Index: rc =================================================================== RCS file: /st/src/FreeBSD/src/etc/rc,v retrieving revision 1.212.2.21 diff -u -r1.212.2.21 rc --- rc 2001/03/07 20:13:56 1.212.2.21 +++ rc 2001/04/25 01:06:14 @@ -255,7 +255,7 @@ *) if [ -w "${swapfile}" -a -c /dev/vn0b ]; then echo "Adding ${swapfile} as additional swap" - vnconfig /dev/vn0b ${swapfile} && swapon /dev/vn0b + vnconfig -ce /dev/vn0b ${swapfile} swap fi ;; esac To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010425010936.8186A3E2A>