From 8563e2a6707a0a8bed9b36734799a7a3a62e5103 Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Thu, 27 Oct 2011 02:36:10 +0200 Subject: [PATCH] Small multidevice fix --- grub-core/fs/zfs/zfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/grub-core/fs/zfs/zfs.c b/grub-core/fs/zfs/zfs.c index 454fc4a4a..b4deba5c0 100644 --- a/grub-core/fs/zfs/zfs.c +++ b/grub-core/fs/zfs/zfs.c @@ -495,9 +495,9 @@ fill_vdev_info_real (struct grub_zfs_data *data, fill->vdev_phys_sector = insert->vdev_phys_sector; fill->current_uberblock = insert->current_uberblock; fill->original = insert->original; + if (!data->device_original) + data->device_original = fill; } - if (!data->device_original) - data->device_original = fill; return GRUB_ERR_NONE; }