Gentoo Archives: gentoo-user

From: Mark David Dumlao <madumlao@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: Integrated ZFS for Gentoo - WAS Re: [gentoo-user] Optional /usr merge in Gentoo
Date: Wed, 04 Sep 2013 11:53:53
Message-Id: CAG2nJkPPSN=6jojZH8O_rsw8LxoEPDpfYsZR+FWKPqVbibO50A@mail.gmail.com
In Reply to: Re: Integrated ZFS for Gentoo - WAS Re: [gentoo-user] Optional /usr merge in Gentoo by Joerg Schilling
1 On Mon, Sep 2, 2013 at 4:47 PM, Joerg Schilling
2 <Joerg.Schilling@××××××××××××××××.de> wrote:
3 > Mark David Dumlao <madumlao@×××××.com> wrote:
4 >
5 >> > > > the disk... OOPS. This is a classic "chicken and egg" situation.
6 >> > >
7 >> > > On Solaris no problem with loadable modules - everything is
8 >> > > dynamically loaded. ***YOU NEED A GRUB THAT UNDERSTANDS ZFS AND THAT
9 >> > > GIVES A ZFS INTERFACE TO THE KERNEL TO USE BEFORE ZFS WAS LOADED***.
10 >>
11 >> I'm confused as to what this means. Grub reads a filesystem, loads a kernel
12 >> with options, and may give it an initrd. What happens from then on is none
13 >> of grub's business. The filesystem it reads from and the one the kernel
14 >> uses may be completely unrelated - this is why we have /boot filesystems.
15 >>
16 >> At what point does grub "present a zfs interface for the kernel to use"?
17 >
18 > After it booted the kernel
19 >
20 > You may not know dynamic kernels as Linux is a static kernel that just may load
21 > additional modules _after_ it mounted the root fs.
22 >
23 > Solaris is dynamic from the beginning:
24
25 Ah I see. But I think by default when we talk about "the kernel" on
26 this mailing list,
27 it's assumed that we're talking about Linux. And in the Linux case,
28 Grub does not do
29 anything like provide a filesystem interface to Linux. It just loads
30 the kernel into memory,
31 and passes it any arguments, like the initrd. So your grub needs to be
32 able to read the
33 filesystem containing the kernel and that's it. If the filesystem
34 containing the kernel is
35 also a zfs filesystem, then your grub needs a driver that can read
36 that filesystem.
37
38 Well sys-boot/grub-2.00 provides one. See /boot/grub/zfs.mod
39 --
40 This email is: [ ] actionable [x] fyi [ ] social
41 Response needed: [ ] yes [ ] up to you [x] no
42 Time-sensitive: [ ] immediate [ ] soon [x] none

Replies

Subject Author
Re: Integrated ZFS for Gentoo - WAS Re: [gentoo-user] Optional /usr merge in Gentoo Joerg Schilling <Joerg.Schilling@××××××××××××××××.de>