From 46c071855ea65429543a24ddb6eaa83b5b40f256 Mon Sep 17 00:00:00 2001 From: CyberLeo Date: Mon, 3 Oct 2011 11:14:07 -0500 Subject: [PATCH] script/gentree: compress kmods on /boot as well; /loader can deal with them just fine, even if kldload cannot --- script/gentree | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/script/gentree b/script/gentree index 59c17e4..04ebf89 100755 --- a/script/gentree +++ b/script/gentree @@ -251,6 +251,14 @@ do_imgboot() { chk onelink "${sboot}/kernel/kernel" chk gzip -9 "${sboot}/kernel/kernel" + # Compress all the modules as well, since /loader can handle them; kldload cannot, + # but I think I can safely assume you will not be kldunloading boot-loaded modules + ls -1 "${sboot}/kernel/"*.ko "${sboot}/modules/"*.ko 2>/dev/null | while read kmod + do + chk onelink "${kmod}" + chk gzip -9 "${kmod}" + done + # Make sure /boot/zfs -> /etc/zfs symlink exists even without /boot mounted [ -L "${sroot}/boot/zfs" ] || chk ln -sf ../etc/zfs "${sroot}/boot/zfs" } -- 2.42.0