[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#595152: marked as done (ZFS support)



Your message dated Wed, 10 Nov 2010 00:17:15 +0000
with message-id <E1PFyNH-0004ZS-8z@franck.debian.org>
and subject line Bug#595152: fixed in grub-installer 1.56
has caused the Debian Bug report #595152,
regarding ZFS support
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
595152: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=595152
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: grub-installer
Version: 1.55
Severity: wishlist
Tags: patch

This patch adds ZFS support to grub-installer.

Note: findfs change is required because mount output only gives zpool name,
not the device associated with it.  The other changes should be obvious.

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=ca_AD.UTF-8, LC_CTYPE=ca_AD.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
diff -ur grub-installer-1.55.old/grub-installer grub-installer-1.55/grub-installer
--- grub-installer-1.55.old/grub-installer	2010-08-18 16:38:02.000000000 +0200
+++ grub-installer-1.55/grub-installer	2010-09-01 13:47:23.554370178 +0200
@@ -75,10 +75,15 @@
 
 serial="$(get_serial_console)"
 
+grub_probe () {
+	apt-install grub-common
+	$chroot $ROOT grub-probe $@
+}
+
 # Usage: convert os_device
 # Convert an OS device to the corresponding GRUB drive
 convert () {
-	tmp_drive="$($chroot $ROOT grub-probe -d -t drive "$1")" || exit $?
+	tmp_drive="$(grub_probe -d -t drive "$1")" || exit $?
 	if [ "$partition_offset" != 0 ]; then
 		tmp_part="$(echo "$tmp_drive" | sed 's%.*,\([0-9]*\)).*%\1%')"
 		if [ "$tmp_part" ] && [ "$tmp_part" != "$tmp_drive" ]; then
@@ -118,7 +123,7 @@
 }
 
 findfs () {
-	mount | grep "on $ROOT${1%/} " | tail -n1 | cut -d' ' -f1
+	grub_probe -t device $1
 }
 
 findfstype () {
@@ -314,6 +319,10 @@
 	# Booting from UFS requires grub2
 	grub_package="grub-pc"
 	;;
+    *:zfs:*:*)
+	# Booting from ZFS requires grub2
+	grub_package="grub-pc"
+	;;
     *:ext2fs:*:grub-pc | *:xfs:*:grub-pc)
     	# Booting ext2fs or xfs using grub2 works
         ;;
@@ -658,6 +667,11 @@
 db_progress STEP 1
 db_progress INFO grub-installer/progress/step_config_loader
 
+if [ "$bootfstype" = "zfs" ]; then
+  # Required by update-grub on ZFS
+  cp /boot/zfs/zpool.cache $ROOT/boot/zfs/
+fi
+
 # Delete for idempotency
 rm -f $ROOT/boot/grub/$menu_file
 update_grub

--- End Message ---
--- Begin Message ---
Source: grub-installer
Source-Version: 1.56

We believe that the bug you reported is fixed in the latest version of
grub-installer, which is due to be installed in the Debian FTP archive:

grub-installer_1.56.dsc
  to main/g/grub-installer/grub-installer_1.56.dsc
grub-installer_1.56.tar.gz
  to main/g/grub-installer/grub-installer_1.56.tar.gz
grub-installer_1.56_kfreebsd-amd64.udeb
  to main/g/grub-installer/grub-installer_1.56_kfreebsd-amd64.udeb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 595152@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Robert Millan <rmh@debian.org> (supplier of updated grub-installer package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Wed, 10 Nov 2010 01:04:15 +0100
Source: grub-installer
Binary: grub-installer
Architecture: source kfreebsd-amd64
Version: 1.56
Distribution: unstable
Urgency: low
Maintainer: Debian Install System Team <debian-boot@lists.debian.org>
Changed-By: Robert Millan <rmh@debian.org>
Description: 
 grub-installer - Install GRUB on a hard disk (udeb)
Closes: 560027 567980 593460 595152
Changes: 
 grub-installer (1.56) unstable; urgency=low
 .
   [ Otavio Salvador ]
   * Use '$grub_version' instead of '$grub_package' to choose the chain
     writting code.
 .
   [ Colin Watson ]
   * Run update-grub within in-target so that /target/proc and /target/sys
     are mounted, fixing OS detection (closes: #560027, #567980, #593460).
 .
   [ Robert Millan ]
   * ZFS support (Closes: #595152).
 .
   [ Updated translations ]
   * Catalan (ca.po) by Jordi Mallach
   * Danish (da.po) by Anders Jenbo
   * Persian (fa.po) by Behrad Eslamifar
   * Icelandic (is.po) by Sveinn í Felli
Checksums-Sha1: 
 99fe10660c3390d1d86a42f93ca7cc778eef379b 1026 grub-installer_1.56.dsc
 cfce34997ba92e4c18fbef4a3d71431b5a76839d 171991 grub-installer_1.56.tar.gz
 05315c780d15866efae6c2f0dd075be343933d67 159890 grub-installer_1.56_kfreebsd-amd64.udeb
Checksums-Sha256: 
 7cda372105cbe097429eb879251c679801121fdf32207b2adb13aecec8818c32 1026 grub-installer_1.56.dsc
 9aec7d693914734d5eb227ac00cc35f19e3cf974cc3ebcd235515616e8c82e2f 171991 grub-installer_1.56.tar.gz
 39964229ea7bda7ec75f924c258485f5eace63f479c6f76f943d4350d1a45891 159890 grub-installer_1.56_kfreebsd-amd64.udeb
Files: 
 1d4e901373100b8424d65a15bdcd06c7 1026 debian-installer standard grub-installer_1.56.dsc
 315b02c3c2ff2994205859773d60817b 171991 debian-installer standard grub-installer_1.56.tar.gz
 6e8f79aee215a3af022fff2c91e19c23 159890 debian-installer standard grub-installer_1.56_kfreebsd-amd64.udeb
Package-Type: udeb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/kFreeBSD)

iEYEARECAAYFAkzZ4d4ACgkQC19io6rUCv8NbwCeK9WMW4AQyy/82p3WeqX/AOmv
6x0An2EpfVeLAiFnGu1Vi7Ajlp2bboIU
=SreT
-----END PGP SIGNATURE-----



--- End Message ---

Reply to: