This rings a bell.. I though I already fixed that years ago!? Ah, well…
Signed-off-by: Turbo Fredriksson <turbo@bayour.com>
---
debian/changelog | 6 ++++++
grub-installer | 4 ++++
2 files changed, 10 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 463efd1..64e59b0 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+grub-installer (1.100.ZOL1) unstable; urgency=medium
+
+ * If finding multiple [br]ootfs, only use the first one.
+
+ -- Turbo Fredriksson <turbo@bayour.com> Tue, 11 Nov 2014 16:07:06 +0100
+
grub-installer (1.100) unstable; urgency=medium
[ Colin Watson ]
diff --git a/grub-installer b/grub-installer
index 2b61fb6..5b4c918 100755
--- a/grub-installer
+++ b/grub-installer
@@ -223,7 +223,11 @@ devices_to_ids()
}
rootfs=$(findfs /)
+rootfs=${rootfs%% *}
+
bootfs=$(findfs /boot)
+bootfs=${bootfs%% *}
+
[ -n "$bootfs" ] || bootfs="$rootfs"
--
1.7.10.4
Attachment:
signature.asc
Description: Message signed with OpenPGP using GPGMail