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 8286F1381F3 for ; Wed, 4 Sep 2013 11:53:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 69D37E0F6D; Wed, 4 Sep 2013 11:53:48 +0000 (UTC) Received: from mail-ie0-f178.google.com (mail-ie0-f178.google.com [209.85.223.178]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6FF25E0F57 for ; Wed, 4 Sep 2013 11:53:47 +0000 (UTC) Received: by mail-ie0-f178.google.com with SMTP id f4so319444iea.37 for ; Wed, 04 Sep 2013 04:53:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=D0OGixdYbHKalZsqwJf1FctjEKV/pGpciQ2nlJW5tUw=; b=c6EoQfJp2Jx+UTpRTRAIsMCC5pb/0BZXlBqMDU3rJyRAA7O88Q3rjniGxth2bl83IO rooNlD7pL6HlXxmvq7z2LWlzLL9x0dvSKDAjeAtCkyIfrNYjdJDxzz6RPGHEBRMsXttB k2LxR0aTZvXL3VCQ8sqAlZr8lD1w/hC3ujgBeQbye+hEVwb9P9i6bBSFdV5+l74z5FdK hFWSdwDZB1HUoJppvFAsn0DBDjhPM6fqeKBRzSgtw/jjgLv7OmHv4fjgql3djG9hJssn IDbE+WvN0LL4Bak0CRarZGWAeCqKdjOKP1v5skiNHoDtNdhLSie6IP/baG3h7sCGtRhI DV5A== 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 X-Received: by 10.50.126.2 with SMTP id mu2mr1408873igb.57.1378295626703; Wed, 04 Sep 2013 04:53:46 -0700 (PDT) Received: by 10.50.158.163 with HTTP; Wed, 4 Sep 2013 04:53:46 -0700 (PDT) In-Reply-To: <522450a7.sv5a6cXRXwVN0vK7%Joerg.Schilling@fokus.fraunhofer.de> References: <20130831120831.GA25399@pacific.net.au> <5221df6c.WS8p51iIG1y/cHXy%Joerg.Schilling@fokus.fraunhofer.de> <20130901001352.GB19271@waltdnes.org> <5222f183.TyO17i4YqvxDAOY6%Joerg.Schilling@fokus.fraunhofer.de> <20130901211947.GA21031@waltdnes.org> <522450a7.sv5a6cXRXwVN0vK7%Joerg.Schilling@fokus.fraunhofer.de> Date: Wed, 4 Sep 2013 19:53:46 +0800 Message-ID: Subject: Re: Integrated ZFS for Gentoo - WAS Re: [gentoo-user] Optional /usr merge in Gentoo From: Mark David Dumlao To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=ISO-8859-1 X-Archives-Salt: 800481ad-414c-4ab3-86dc-d14ac9a446bd X-Archives-Hash: f0430c9897960ce1f5acbe0be38eed71 On Mon, Sep 2, 2013 at 4:47 PM, Joerg Schilling wrote: > Mark David Dumlao wrote: > >> > > > the disk... OOPS. This is a classic "chicken and egg" situation. >> > > >> > > On Solaris no problem with loadable modules - everything is >> > > dynamically loaded. ***YOU NEED A GRUB THAT UNDERSTANDS ZFS AND THAT >> > > GIVES A ZFS INTERFACE TO THE KERNEL TO USE BEFORE ZFS WAS LOADED***. >> >> I'm confused as to what this means. Grub reads a filesystem, loads a kernel >> with options, and may give it an initrd. What happens from then on is none >> of grub's business. The filesystem it reads from and the one the kernel >> uses may be completely unrelated - this is why we have /boot filesystems. >> >> At what point does grub "present a zfs interface for the kernel to use"? > > After it booted the kernel > > You may not know dynamic kernels as Linux is a static kernel that just may load > additional modules _after_ it mounted the root fs. > > Solaris is dynamic from the beginning: Ah I see. But I think by default when we talk about "the kernel" on this mailing list, it's assumed that we're talking about Linux. And in the Linux case, Grub does not do anything like provide a filesystem interface to Linux. It just loads the kernel into memory, and passes it any arguments, like the initrd. So your grub needs to be able to read the filesystem containing the kernel and that's it. If the filesystem containing the kernel is also a zfs filesystem, then your grub needs a driver that can read that filesystem. Well sys-boot/grub-2.00 provides one. See /boot/grub/zfs.mod -- This email is: [ ] actionable [x] fyi [ ] social Response needed: [ ] yes [ ] up to you [x] no Time-sensitive: [ ] immediate [ ] soon [x] none