]> git.proxmox.com Git - zfs-grub.git/blob - pvepatches/fix-grub-pc-postinst.patch
e6956be22c71a6d6f2175b013c9df6a8e4066ebe
[zfs-grub.git] / pvepatches / fix-grub-pc-postinst.patch
1 see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=775739
2
3 Index: new/debian/postinst.in
4 ===================================================================
5 --- new.orig/debian/postinst.in 2014-12-22 12:55:53.000000000 +0100
6 +++ new/debian/postinst.in 2015-01-19 12:20:20.000000000 +0100
7 @@ -265,8 +265,13 @@
8 if [ -z "$partition" ] || [ "$partition" = "$last_partition" ]; then
9 continue
10 fi
11 - partition_id="$(device_to_id "$partition" || true)"
12 - echo "$path:$partition_id"
13 + for dev in $partition; do
14 + partition_id="$(device_to_id "$dev" || true)"
15 + if [ -z "$partition_id" ]; then
16 + continue;
17 + fi
18 + echo "$dev:$partition_id"
19 + done
20 last_partition="$partition"
21 done | sort -t: -k2
22 }