From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 1 01:04:56 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E9E761065670 for ; Mon, 1 Jun 2009 01:04:56 +0000 (UTC) (envelope-from onemda@gmail.com) Received: from mail-bw0-f213.google.com (mail-bw0-f213.google.com [209.85.218.213]) by mx1.freebsd.org (Postfix) with ESMTP id 774868FC25 for ; Mon, 1 Jun 2009 01:04:56 +0000 (UTC) (envelope-from onemda@gmail.com) Received: by bwz9 with SMTP id 9so7358066bwz.43 for ; Sun, 31 May 2009 18:04:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=UaUNriLHFq77l2iuNisGK6gUWNsEZMN6RiJFyh786nU=; b=LJARFz0y4P7TvpElXfe7Fi/SCll3mWWTQLdTRFMDKrRgVPwoK5PG5Drl/Ky0mM98Un 3EDuJ9rX256m83o0F9nDh07WkLeCjA0qAfQ/pv9y4Ue0m0pISUNEx1B1mQqygtCjKiNa c+SktIxmrAGUxcJkDv2EPnxkSfvPYXNBAtgxM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=B9utfTTwzqMG4ydFM51P6cEyx3+mpLVJzml2qQw1ZoCQ0E48btAXSLrXcvSxhup0da U04S8YgwqRe9YQA+68cvpduTgKJE7K9sv8cNF8dKKFjwybQRFSsGCm1Ye6vMSrxGf5w4 Sk9HUduWFEzkfZ5bbaDv7rWyzE/NH25dO0sTI= MIME-Version: 1.0 Received: by 10.204.100.10 with SMTP id w10mr5057342bkn.211.1243817021542; Sun, 31 May 2009 17:43:41 -0700 (PDT) In-Reply-To: <4A230199.6090107@iem.pw.edu.pl> References: <4A230199.6090107@iem.pw.edu.pl> Date: Mon, 1 Jun 2009 00:43:41 +0000 Message-ID: <3a142e750905311743g100eecc8h749d184fc740cf90@mail.gmail.com> From: "Paul B. Mahol" To: Jedrzej Kalinowski Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: Getting rid of pxeboot loader requests for .gz an .bz2 files 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, 01 Jun 2009 01:04:57 -0000 On 5/31/09, Jedrzej Kalinowski wrote: > Hello, > > I've got a FreeBSD CURRENT diskless boot set up. > > In the logs of tftpd-hpa I can see that every and each file from > boot.4th to kernel modules is tried to be fetched in compressed format > (.gz, .bz2) before it is loaded in its pure form by the pxe-enabled loader. > > So the sequence is: file.gz->file.bz2->file. > > I don't have compressed versions of these files in my environment, so I > would like to get rid of these requests. Just to make my boot lighter - > thus faster. > > I'm looking for some hints on how to do it in the sources and I only > found it on lines 88 - 93 of /usr/src/sys/boot/i386/loader/conf.c, namely: > > #ifdef LOADER_GZIP_SUPPORT > &gzipfs_fsops, > #endif > #ifdef LOADER_BZIP2_SUPPORT > &bzipfs_fsops, > #endif > > Is it the correct idea to: > make -C /usr/src/sys/boot -DLOADER_NO_GZIP_SUPPORT > -DLOADER_NO_BZIP2_SUPPORT .... ? > > Or is it the other place I should look for? /etc/make.conf ? -- Paul