From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VOV3c-0003im-CI for mharc-grub-devel@gnu.org; Tue, 24 Sep 2013 12:01:48 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58901) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VOV3W-0003Xs-5w for grub-devel@gnu.org; Tue, 24 Sep 2013 12:01:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VOV3R-0000k8-71 for grub-devel@gnu.org; Tue, 24 Sep 2013 12:01:42 -0400 Received: from mail-la0-x22b.google.com ([2a00:1450:4010:c03::22b]:43794) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VOV3Q-0000jw-Ow for grub-devel@gnu.org; Tue, 24 Sep 2013 12:01:37 -0400 Received: by mail-la0-f43.google.com with SMTP id ep20so3830626lab.16 for ; Tue, 24 Sep 2013 09:01:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=FHmbhBwx3TcNeXsItcEIo7rN3kdcEdh612jSKGhIm+c=; b=dy2kRjurXdmyORS4TxqTO4PEED/Tg36qU3NjgS9lf4vG34rOrOkM6VfTm0DBubf/qU hsCvAv1qLjAtWbZgDabQuaYHIsMHzQ5jd2YYXvaYQ7Rv0hbzyWVfklKN97oCJy4QmLvo +cnJIcEopmlD0o8bz04dZUFNiOuhJxJrx10L4+iVoL6XiZjGLk2muNre/yuevQCdBEF0 0Ut28XNraAOYwEzofl/p8eiE3RPYJ0aHQsR8O7pyi+P12Pg5FXPee7kmY9novUNmCHjW OvbjRzDoJehMNpgZ4FGJ3pyQfL+SSiQqfhamA9ji22VJsxpGPHieFz/0oFavV2POM2Xm jbGw== X-Received: by 10.152.116.7 with SMTP id js7mr25658058lab.11.1380038495457; Tue, 24 Sep 2013 09:01:35 -0700 (PDT) Received: from opensuse.site (ppp91-76-150-246.pppoe.mtu-net.ru. [91.76.150.246]) by mx.google.com with ESMTPSA id u18sm15802835lbp.4.1969.12.31.16.00.00 (version=SSLv3 cipher=RC4-SHA bits=128/128); Tue, 24 Sep 2013 09:01:34 -0700 (PDT) Date: Tue, 24 Sep 2013 20:01:33 +0400 From: Andrey Borzenkov To: The development of GNU GRUB Subject: Re: grub2 boot root-on-zfs errors Message-ID: <20130924200133.0f2a208d@opensuse.site> In-Reply-To: References: X-Mailer: Claws Mail 3.9.0 (GTK+ 2.24.18; x86_64-suse-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::22b Cc: zaphod@berentweb.com X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Sep 2013 16:01:47 -0000 В Tue, 24 Sep 2013 18:49:33 +0300 Beeblebrox пишет: > Massimo: > >> should be written as (hd0,gpt2)/mydataset/@/myfolder/myfile. > Yes, of course - I made the mistake because I was in a hurry writing > the mail. My current & corrected menu choices are: > > menuentry "Test1-BSD-ZFS Direct-Boot" { > insmod zfs > search -s -l bsds > set root='hd0,gpt2' > kfreebsd (hd0,gpt2)/bsds/@/boot/kernel/kernel Should not it be (hd0,gpt2)/bsds@/boot/kernel/kernel (notice lack of slash between "bsds" and "@")? > kfreebsd_module_elf (hd0,gpt2)/bsds/@/boot/kernel/opensolaris.ko > kfreebsd_module_elf (hd0,gpt2)/bsds/@/boot/kernel/zfs.ko > kfreebsd_module (hd0,gpt2)/bsds/@/boot/zfs/zpool.cache > type=/boot/zfs/zpool.cache > kfreebsd_loadenv (hd0,gpt2)/bsds/@/boot/device.hints > set kFreeBSD.vfs.root.mountfrom=zfs:bsds > } > menuentry 'Test2-BSD-ZFS ChainloadBTX' { > insmod zfs > set root='hd0,gpt2' > kfreebsd (hd0,gpt2)/bsds/@/boot/loader > } > > Neither of the above entries work. My root zpool is named "bsds" and > the zfs is the same as the root pool. In other words, zfs list => > bsds / > bsds/usr /usr > bsds/var /var > etc... > I have also tried (unsuccessfully) the above with > set root='hd0,gpt2' > kfreebsd /@/boot/loader OR > kfreebsd (hd0,gpt2)/@/boot/loader OR > kfreebsd (hd0,gpt2)//@/boot/loader > All give "unknown filesystem" message. When I drop to grub > command-propmt, and try: > zfsinfo (hd0,gpt2) => error: couldn't find a valid label > I did not try the other 2 zfs-related commands because I do not know > how to use them. > > Finally, The grub version on the HDD is from Ubuntu-Raring (2.0). I > should and want to re-code grub from the FreeBSD side, but I am > hesitant since I don't want to fail and work to re-install the > bootloader. FreeBSD's grub is also 2.0. The grub-mkconfig command > however, generates a completely different grub.cfg. The currently > installed (ubuntu) grub does not recognize the "t" command and neither > the root ID c2955d0d7dd8618b (no such device) > menuentry 'FreeBSD' --class freebsd --class bsd --class os > $menuentry_id_option 'kfreebsd-simple-c2955d0d7dd8618b' { > tinsmod part_gpt > tinsmod zfs > tif [ x$feature_platform_search_hint = xy ]; then > t search --no-floppy --fs-uuid --set=root c2955d0d7dd8618b > telse > t search --no-floppy --fs-uuid --set=root c2955d0d7dd8618b > tfi > echo 'Loading kernel of FreeBSD kernel ...' > kfreebsd //@/boot/kernel/kernel > kfreebsd_loadenv //@/boot/device.hints > tinsmod part_gpt > tinsmod zfs > tif [ x$feature_platform_search_hint = xy ]; then > t search --no-floppy --fs-uuid --set=root c2955d0d7dd8618b > telse > t search --no-floppy --fs-uuid --set=root c2955d0d7dd8618b > tfi > kfreebsd_module_elf //@/boot/kernel/opensolaris.ko > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel