Getting rid of pxeboot loader requests for .gz an .bz2 files

Jedrzej Kalinowski kalinoj1 at iem.pw.edu.pl
Sun May 31 22:36:17 UTC 2009


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


More information about the freebsd-hackers mailing list