From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 28 14:38:18 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 35F3816A41F for ; Mon, 28 Nov 2005 14:38:18 +0000 (GMT) (envelope-from tbyte@otel.net) Received: from mail.otel.net (ll.otel.net [212.36.8.152]) by mx1.FreeBSD.org (Postfix) with ESMTP id A560543D62 for ; Mon, 28 Nov 2005 14:38:16 +0000 (GMT) (envelope-from tbyte@otel.net) Received: from dragon.otel.net ([212.36.8.135]) by mail.otel.net with esmtp (Exim 4.30; FreeBSD) id 1Egk8y-0000d2-At; Mon, 28 Nov 2005 16:38:12 +0200 From: Iasen Kostov To: "David S. Madole" In-Reply-To: <077601c5f426$9aeac960$c3e7a8c0@david> References: <1133186851.70996.11.camel@DraGoN.OTEL.net> <077601c5f426$9aeac960$c3e7a8c0@david> Content-Type: text/plain Date: Mon, 28 Nov 2005 16:38:11 +0200 Message-Id: <1133188691.70996.18.camel@DraGoN.OTEL.net> Mime-Version: 1.0 X-Mailer: Evolution 2.4.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: FreeBSD Hackers 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 14:38:18 -0000 On Mon, 2005-11-28 at 09:18 -0500, David S. Madole wrote: > From: "Iasen Kostov" > > > 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 not > > 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="YES" > > rootfs_name="dlroot.gz" > > rootfs_type="mfs_root" > > I've not users this in quite a while, so I may be wrong here, but I think > what you need is: > > rootfs_name="dlroot" > > If gzip support is compiled in, it will automatically try to fetch > dlroot.gz first and if it succeeds, it will uncompress and use it. The > way you have configured it, it tries dlroot.gz.gz, which fails, so then > it tried to load dlroot.gz as an uncompressed file. > > David > 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) :)