]> git.proxmox.com Git - zfs-grub.git/blob - pvepatches/fix-grub-pc-postinst.patch
update to grub2.02-beta3-3
[zfs-grub.git] / pvepatches / fix-grub-pc-postinst.patch
1 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= <f.gruenbichler@proxmox.com>
2 Date: Thu, 10 Nov 2016 15:08:00 +0100
3 Subject: [PATCH] fix grub pc postinst
4
5 see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=775739
6 ---
7 debian/postinst.in | 9 +++++++--
8 1 file changed, 7 insertions(+), 2 deletions(-)
9
10 diff --git a/debian/postinst.in b/debian/postinst.in
11 index e3393a4..e635747 100644
12 --- a/debian/postinst.in
13 +++ b/debian/postinst.in
14 @@ -265,8 +265,13 @@ usable_partitions()
15 if [ -z "$partition" ] || [ "$partition" = "$last_partition" ]; then
16 continue
17 fi
18 - partition_id="$(device_to_id "$partition" || true)"
19 - echo "$path:$partition_id"
20 + for dev in $partition; do
21 + partition_id="$(device_to_id "$dev" || true)"
22 + if [ -z "$partition_id" ]; then
23 + continue;
24 + fi
25 + echo "$dev:$partition_id"
26 + done
27 last_partition="$partition"
28 done | sort -t: -k2
29 }
30 --
31 2.1.4
32