From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 28 17:21:56 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1968816A41F for ; Mon, 28 Nov 2005 17:21:56 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0E88443D75 for ; Mon, 28 Nov 2005 17:21:46 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from localhost (rocky.ip.net.ua [82.193.96.2]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id jASHLdLX039840; Mon, 28 Nov 2005 19:21:39 +0200 (EET) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua ([82.193.96.10]) by localhost (rocky.ipnet [82.193.96.2]) (amavisd-new, port 10024) with LMTP id 23117-02-5; Mon, 28 Nov 2005 19:21:39 +0200 (EET) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id jASHJsOf039714 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 28 Nov 2005 19:19:55 +0200 (EET) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.4/8.13.4) id jASHJjjO063020; Mon, 28 Nov 2005 19:19:45 +0200 (EET) (envelope-from ru) Date: Mon, 28 Nov 2005 19:19:45 +0200 From: Ruslan Ermilov To: Iasen Kostov Message-ID: <20051128171945.GD62631@ip.net.ua> References: <1133186851.70996.11.camel@DraGoN.OTEL.net> <077601c5f426$9aeac960$c3e7a8c0@david> <1133188691.70996.18.camel@DraGoN.OTEL.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="T7mxYSe680VjQnyC" Content-Disposition: inline In-Reply-To: <1133188691.70996.18.camel@DraGoN.OTEL.net> User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new at ip.net.ua Cc: FreeBSD Hackers , "David S. Madole" Subject: Re: Loading gzipped mfsroot X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Nov 2005 17:21:56 -0000 --T7mxYSe680VjQnyC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Nov 28, 2005 at 04:38:11PM +0200, Iasen Kostov wrote: > On Mon, 2005-11-28 at 09:18 -0500, David S. Madole wrote: > > From: "Iasen Kostov" > >=20 > > > I've seen a lot of examples where peeple load gzipped mfsroot images > > > and everything looks fine for them, but not for me. It loads > > > uncompressed image and boots ok, it loads compressed image and does n= ot > > > uncompress it and then tries to mount ufs directly on it which fails > > > ofcourse. As I saw bay default loader(and pxeboot porbably - its a > > > diskless machine which boots over ethernet) have LOADER_GZIP_SUPPORT > > > defined so I think I should have gzip support in loader. > > > > > > Here is the loader.conf: > > > > > > rootfs_load=3D"YES" > > > rootfs_name=3D"dlroot.gz" > > > rootfs_type=3D"mfs_root" > >=20 > > I've not users this in quite a while, so I may be wrong here, but I thi= nk=20 > > what you need is: > >=20 > > rootfs_name=3D"dlroot" > >=20 > > If gzip support is compiled in, it will automatically try to fetch=20 > > dlroot.gz first and if it succeeds, it will uncompress and use it. The= =20 > > way you have configured it, it tries dlroot.gz.gz, which fails, so then= =20 > > it tried to load dlroot.gz as an uncompressed file. > >=20 > > David > >=20 >=20 > Thanks a lot ! That do the trick :) > It will realy be good if this is documented somewhere - probably in > loader(8) manual page ... And will save people some hours of "blessing" > loader(8) :) >=20 loader(8) has no business documenting this; it's already documented (though not too verbose) in the libstand(3) manpage. Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --T7mxYSe680VjQnyC Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDizwxqRfpzJluFF4RAjzeAJ4lNQE/OZ8URi1qFU4iQ1EVWtVfkQCcCmMQ hmuqf9uW/Rrk4S7cQy/mQt8= =/sQn -----END PGP SIGNATURE----- --T7mxYSe680VjQnyC--