From owner-freebsd-hackers@FreeBSD.ORG Sun May 31 22:36:16 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 66C20106571F for ; Sun, 31 May 2009 22:36:16 +0000 (UTC) (envelope-from kalinoj1@iem.pw.edu.pl) Received: from volt.iem.pw.edu.pl (volt.iem.pw.edu.pl [194.29.146.3]) by mx1.freebsd.org (Postfix) with ESMTP id 290938FC18 for ; Sun, 31 May 2009 22:36:16 +0000 (UTC) (envelope-from kalinoj1@iem.pw.edu.pl) Received: from [192.168.1.183] (chello089079156006.chello.pl [89.79.156.6]) (Authenticated sender: kalinoj1) by volt.iem.pw.edu.pl (Postfix) with ESMTPSA id 06210A6663B for ; Mon, 1 Jun 2009 00:17:45 +0200 (CEST) Message-ID: <4A230199.6090107@iem.pw.edu.pl> Date: Mon, 01 Jun 2009 00:15:53 +0200 From: Jedrzej Kalinowski User-Agent: Thunderbird 2.0.0.21 (X11/20090524) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Virus-Scanned: clamav-milter devel-r5066-exp at volt.iem.pw.edu.pl X-Virus-Status: Clean X-Mailman-Approved-At: Mon, 01 Jun 2009 00:17:53 +0000 Subject: 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: Sun, 31 May 2009 22:36:17 -0000 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? Thank you -- Jędrzej Kalinowski