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
5 see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=775739
7 debian/postinst.in | 9 +++++++--
8 1 file changed, 7 insertions(+), 2 deletions(-)
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
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
25 + echo "$dev:$partition_id"
27 last_partition="$partition"