Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Mar 2017 21:09:58 +0000
From:      Steven Hartland <killing@multiplay.co.uk>
To:        freebsd-fs@freebsd.org
Subject:   Re: How to compile ZFS only ?
Message-ID:  <4a7293c4-3a13-f865-bfb7-4d40581cfe3b@multiplay.co.uk>
In-Reply-To: <40633FF9-242F-48E1-8CE6-ADE4AC3C5C89@gmail.com>
References:  <40633FF9-242F-48E1-8CE6-ADE4AC3C5C89@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
cd /usr/src
make buildenv
cd sys/modules/zfs/
make
make install

On 22/03/2017 20:57, Ben RUBSON wrote:
> Hi,
>
> I'm trying to rebuild ZFS (with some patches) without having to rebuild whole kernel.
>
> What I then try :
> # cd /usr/src/sys/modules/zfs/
> # make
> # cp zfs.ko /boot/kernel/ #to replace current zfs module
>
> But then server does not reboot properly (/ is on ZFS).
>
> If I do :
> # cd /usr/src/
> # make buildkernel KERNCONF=GENERIC
> # cp /usr/obj/usr/src/sys/GENERIC/modules/usr/src/sys/modules/zfs/zfs.ko /boot/kernel/
>
> Then server correctly reboot.
>
> I clearly see that zfs.ko in method 1 is slightly smaller that in method 2.
>
> Am I missing something ? (of course yes, but what ? :)
>
> Many thanks !
>
> Best regards,
>
> Ben
>
> _______________________________________________
> freebsd-fs@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-fs
> To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4a7293c4-3a13-f865-bfb7-4d40581cfe3b>