Date: Mon, 01 Jun 2009 00:15:53 +0200 From: Jedrzej Kalinowski <kalinoj1@iem.pw.edu.pl> To: freebsd-hackers@freebsd.org Subject: Getting rid of pxeboot loader requests for .gz an .bz2 files Message-ID: <4A230199.6090107@iem.pw.edu.pl>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A230199.6090107>