From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id E1A4C1381F3 for ; Mon, 26 Aug 2013 14:12:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BE5C8E0DDF; Mon, 26 Aug 2013 14:11:57 +0000 (UTC) Received: from mail.digimed.co.uk (82-69-83-178.dsl.in-addr.zen.co.uk [82.69.83.178]) by pigeon.gentoo.org (Postfix) with ESMTP id 9A75AE0DA5 for ; Mon, 26 Aug 2013 14:11:56 +0000 (UTC) Received: from digimed.co.uk (shooty.digimed.co.uk [192.168.1.8]) by mail.digimed.co.uk (Postfix) with ESMTPA id 9530020607 for ; Mon, 26 Aug 2013 15:11:45 +0100 (BST) Date: Mon, 26 Aug 2013 15:11:40 +0100 From: Neil Bothwick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Optional /usr merge in Gentoo Message-ID: <20130826151140.49656d5c@digimed.co.uk> In-Reply-To: <521B553C.2020307@libertytrek.org> References: <520A5446.1050001@mail.ru> <520DA782.4050803@sporkbox.us> <520F6333.70301@dmj.nu> <9716EEEB-144F-47AA-A828-FC9A508CE9FA@stellar.eclipse.co.uk> <521090F5.4090305@gmail.com> <521122CB.4010003@libertytrek.org> <521A7EE9.8000706@gmail.com> <521B553C.2020307@libertytrek.org> Organization: Digital Media Production X-Mailer: Claws Mail 3.9.2-71-gace330 (GTK+ 2.24.20; x86_64-pc-linux-gnu) X-GPG-Fingerprint: 7260 0F33 97EC 2F1E 7667 FE37 BA6E 1A97 4375 1903 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/LRpFI575x7mblnGgTDTN6ul"; protocol="application/pgp-signature" X-Archives-Salt: b5d6ad14-0a59-423f-85ac-662594ef4602 X-Archives-Hash: 8d72be7c6847faea85453af5bca05017 --Sig_/LRpFI575x7mblnGgTDTN6ul Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Mon, 26 Aug 2013 09:16:44 -0400, Tanstaafl wrote: > > You can get ZFS on Linux with relative ease, you just have to build it > > yourself. Distros feel they can't redistribute that code. =20 >=20 > I know you can do this as a module - but is there an overlay or patch > to get it built directly into the kernel? I'd love to use ZFS on my > gentoo server, but I disable modules on servers for security reasons. You can do it. You have to unmask the kernel_builtin USE flag to stop zfs bringing in zfs_kmod, then unpack the sources and run the script to install them into the kernel tree. I run this script after emerging a new kernel =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D #!/bin/sh [[ -f /usr/src/linux/.config ]] || zcat /proc/config.gz >/usr/src/linux/.config SPL_EBUILD=3D$(ls -1 /var/portage/sys-kernel/spl/spl-0* | tail -n 1) ZFS_EBUILD=3D$(ls -1 /var/portage/sys-fs/zfs/zfs-0* | tail -n 1) SPL_DIR=3D$(ebuild $SPL_EBUILD clean prepare | awk '/Preparing source in/ {print $5}') ZFS_DIR=3D$(ebuild $ZFS_EBUILD clean prepare | awk '/Preparing source in/ {print $5}') cd $SPL_DIR ./configure --enable-linux-builtin --with-linux=3D/usr/src/linux ./copy-builtin /usr/src/linux =20 cd $ZFS_DIR ./configure --enable-linux-builtin --with-linux=3D/usr/src/linux --with-spl=3D$SPL_DIR ./copy-builtin /usr/src/linux =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Then run make oldconfig and compile as usual. --=20 Neil Bothwick Cross-country skiing is great in small countries. --Sig_/LRpFI575x7mblnGgTDTN6ul Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.21 (GNU/Linux) iEYEARECAAYFAlIbYiEACgkQum4al0N1GQPVGACgvFEQv+lkm6fyTeBUo6YX+nwI fewAoL1VznMuIkpLn8if+GRtc6T8EIoR =oyZL -----END PGP SIGNATURE----- --Sig_/LRpFI575x7mblnGgTDTN6ul--