Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Jun 2009 00:43:41 +0000
From:      "Paul B. Mahol" <onemda@gmail.com>
To:        Jedrzej Kalinowski <kalinoj1@iem.pw.edu.pl>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Getting rid of pxeboot loader requests for .gz an .bz2 files
Message-ID:  <3a142e750905311743g100eecc8h749d184fc740cf90@mail.gmail.com>
In-Reply-To: <4A230199.6090107@iem.pw.edu.pl>
References:  <4A230199.6090107@iem.pw.edu.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
On 5/31/09, Jedrzej Kalinowski <kalinoj1@iem.pw.edu.pl> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3a142e750905311743g100eecc8h749d184fc740cf90>