aboutsummaryrefslogtreecommitdiff
path: root/sys/boot/i386/loader/conf.c
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2001-09-18 14:52:36 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2001-09-18 14:52:36 +0000
commit0f2c85b335d8aafd901712f71c0d4debc20cfeb3 (patch)
tree217cc58c250850b5b2c914394d3b7054c3aa6372 /sys/boot/i386/loader/conf.c
parent33ae84b7c6e83bb3b2dd7159213a0ba69e13058b (diff)
downloadsrc-0f2c85b335d8aafd901712f71c0d4debc20cfeb3.tar.gz
src-0f2c85b335d8aafd901712f71c0d4debc20cfeb3.zip
Add support for loading bzip2-compressed kernels and modules. This support
is turned off by default and could be enabled by defining LOADER_BZIP2_SUPPORT make variable. Also make gzip support optional (turned on by default) - it could be turned off via LOADER_NO_GZIP_SUPPORT make variable. Please note, that due to limit on the amount of memory available to the loader(8), it is possible to load modules/kernels compressed with the smallest block size supported by the bzip2 - 100k (`-1' bzip2(1) option), however even in this mode bzip2(1) usually provides better compression ratio than gzip(1) in its best compression mode. MFC after: 1 month
Notes
Notes: svn path=/head/; revision=83616
Diffstat (limited to 'sys/boot/i386/loader/conf.c')
-rw-r--r--sys/boot/i386/loader/conf.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/boot/i386/loader/conf.c b/sys/boot/i386/loader/conf.c
index bef1ed99680d..ba8ebf680c3b 100644
--- a/sys/boot/i386/loader/conf.c
+++ b/sys/boot/i386/loader/conf.c
@@ -58,7 +58,12 @@ struct fs_ops *file_system[] = {
&ufs_fsops,
&ext2fs_fsops,
&dosfs_fsops,
+#ifdef LOADER_GZIP_SUPPORT
&zipfs_fsops,
+#endif
+#ifdef LOADER_BZIP2_SUPPORT
+ &bzipfs_fsops,
+#endif
#ifdef LOADER_NFS_SUPPORT
&nfs_fsops,
#endif