From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 28 14:18:32 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 22B5A16A41F for ; Mon, 28 Nov 2005 14:18:32 +0000 (GMT) (envelope-from david@madole.net) Received: from a.omd3.com (a.omd3.com [69.90.174.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id AF27843D75 for ; Mon, 28 Nov 2005 14:18:31 +0000 (GMT) (envelope-from david@madole.net) Received: from dhcp-66-212-201-164.myeastern.com ([66.212.201.164] helo=david) by a.omd3.com with esmtpa (Exim 4.54) id 1Egjpu-000JZH-Fp; Mon, 28 Nov 2005 09:18:30 -0500 Message-ID: <077601c5f426$9aeac960$c3e7a8c0@david> From: "David S. Madole" To: "Iasen Kostov" , "FreeBSD Hackers" References: <1133186851.70996.11.camel@DraGoN.OTEL.net> Date: Mon, 28 Nov 2005 09:18:28 -0500 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="Windows-1252"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2670 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 Cc: 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:18:32 -0000 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