From: Andrey Borzenkov <arvidjaar@gmail.com>
To: grub-devel@gnu.org
Subject: Re: grub2 boot root-on-zfs errors
Date: Tue, 24 Sep 2013 15:01:58 +0400 [thread overview]
Message-ID: <20130924150158.78bb8798@opensuse.site> (raw)
In-Reply-To: <20130924075636.3f3d8696@opensuse.site>
[-- Attachment #1: Type: text/plain, Size: 2791 bytes --]
В Tue, 24 Sep 2013 07:56:36 +0400
Andrey Borzenkov <arvidjaar@gmail.com> пишет:
> В Mon, 23 Sep 2013 21:28:41 +0200
> Vladimir 'φ-coder/phcoder' Serbinenko <phcoder@gmail.com> пишет:
>
> > On 23.09.2013 20:59, Beeblebrox wrote:
> > >>> This doesn't demonstrate anything else than that you didn't use tools
> > > correctly. It's: grub-probe -d /dev/ada0p2
> > >
> > > Thank you very much - I ran the command you instructed and see that
> > > the FS is identified correctly.
> > > $ grub-probe -d /dev/ada0p2
> > > zfs
> > >
> > > I cannot, however, boot from grub directly into zfs-root. After the
> > > grub menu comes up, and I fall to command-prompt, listing the drives
> > > shows no ZFS paths and the various menu variations I have tried do not
> > > work.
> > >
> > > Unfortunately, there is not much accurate documentation for
> > > FreeBSD+ZFS+grub, and the linux solutions to the problem do not work
> > > for FreeBSD.
> > >
> > > The main problem form the grub loader / command line, is that I cannot
> > > get any code loaded which is located on a ZPOOL:
> > >
> > > menuentry 'FreeBSD-ZFS' {
> > > insmod zfs
> > > set root='hd0,gpt2'
> > > kfreebsd /boot/loader }
> > >
> > > Fails because grub cannot find bootloader and gives "no such file" error.
> > > Please let me know what ıther info I can provide to debug the problem.
> > >
> > Syntax is:
> > (DISK)/VOLUME@[SNAPSHOT]/FILE
> > I think it's described somewhere in manual
>
> No, it is not. There are examples using zfs with this syntax (but
> without snapshot)s).
>
> I'm not sure where should it go ... in "File name syntax" probably?
Like this?
From: Andrey Borzenkov <arvidjaar@gmail.com>
To: grub-devel@gnu.org
Subject: [PATCH] document ZFS filename syntax.
Signed-off-by: Andrey Borzenkov <arvidjaar@gmail.com>
---
docs/grub.texi | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/docs/grub.texi b/docs/grub.texi
index 574f602..1cef528 100644
--- a/docs/grub.texi
+++ b/docs/grub.texi
@@ -2564,6 +2564,13 @@ GRUB's @dfn{root device} implicitly. So if you set the root device to,
say, @samp{(hd1,1)} by the command @samp{set root=(hd1,1)} (@pxref{set}),
then @code{/boot/kernel} is the same as @code{(hd1,1)/boot/kernel}.
+On ZFS filesystem the first path component must be
+@var{volume}@samp{@@}[@var{snapshot}].
+So @samp{/rootvol@snap-129/boot/grub/grub.cfg} refers to file
+@samp{/boot/grub/grub.cfg} in snapshot of volume @samp{rootvol} with name
+@samp{snap-129}. Trailing @samp{@@} after volume name is mandatory even if
+snapshot name is omitted.
+
@node Block list syntax
@section How to specify block lists
--
tg: (321e011..) u/zfs_file_names (depends on: master)
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
next prev parent reply other threads:[~2013-09-24 11:02 UTC|newest]
Thread overview: 60+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-23 18:59 grub2 boot root-on-zfs errors Beeblebrox
2013-09-23 19:24 ` Massimo Maggi
2013-09-23 19:28 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-09-24 3:56 ` Andrey Borzenkov
2013-09-24 11:01 ` Andrey Borzenkov [this message]
2013-09-24 11:12 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-09-24 15:49 ` Beeblebrox
2013-09-24 16:01 ` Andrey Borzenkov
2013-09-24 16:11 ` Vladimir 'φ-coder/phcoder' Serbinenko
-- strict thread matches above, loose matches on Subject: below --
2013-11-24 9:14 Beeblebrox
2013-11-24 15:08 ` Andrey Borzenkov
2013-11-25 11:08 ` Beeblebrox
2013-11-25 11:14 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-11-25 17:29 ` Andrey Borzenkov
2013-11-25 22:12 ` Vladimir 'phcoder' Serbinenko
2013-11-22 7:09 Beeblebrox
2013-11-22 7:25 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-11-22 7:30 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-11-22 13:16 ` Colin Watson
2013-11-22 13:30 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-11-25 16:54 ` Colin Watson
2013-11-10 17:50 Beeblebrox
2013-11-10 19:06 ` Vladimir 'φ-coder/phcoder' Serbinenko
[not found] ` <CAPSTskuZ2nHt6iKHfgFfWeBxpRyuqPmyXHd3AYCr1muaua+H7w@mail.gmail.com>
2013-11-22 15:22 ` Beeblebrox
2013-11-22 17:01 ` Beeblebrox
2013-11-23 1:09 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-11-23 12:54 ` Beeblebrox
2013-11-23 13:10 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-11-23 13:50 ` Beeblebrox
2013-11-23 17:58 ` Beeblebrox
2013-11-04 6:13 Beeblebrox
2013-11-05 7:35 ` Beeblebrox
2013-11-05 8:49 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-11-05 9:43 ` Beeblebrox
2013-11-09 15:31 ` Beeblebrox
2013-11-09 15:37 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-11-10 10:28 ` Beeblebrox
2013-11-10 10:41 ` Andrey Borzenkov
2013-11-10 14:47 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-11-10 12:08 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-11-08 14:12 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-10-31 10:37 Beeblebrox
2013-10-31 11:40 ` Beeblebrox
2013-10-31 16:24 ` Andrey Borzenkov
2013-10-31 16:36 ` Beeblebrox
2013-10-31 17:32 ` Andrey Borzenkov
2013-10-31 18:04 ` Beeblebrox
2013-11-02 7:58 ` Beeblebrox
2013-11-02 14:55 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-10-31 19:06 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-09-28 11:56 Beeblebrox
2013-09-28 14:42 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-09-28 8:48 Beeblebrox
2013-09-28 11:06 ` Andrey Borzenkov
2013-09-25 6:58 Beeblebrox
2013-09-25 8:06 ` Andrey Borzenkov
2013-09-25 10:33 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-08-30 7:23 Raif S. Berent
2013-09-05 7:31 ` Beeblebrox
2013-09-23 9:09 ` Vladimir 'φ-coder/phcoder' Serbinenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130924150158.78bb8798@opensuse.site \
--to=arvidjaar@gmail.com \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.