]>
Commit | Line | Data |
---|---|---|
4cacf5c4 FG |
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 | ||
b62b6144 | 5 | see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=775739 |
4cacf5c4 FG |
6 | --- |
7 | debian/postinst.in | 9 +++++++-- | |
8 | 1 file changed, 7 insertions(+), 2 deletions(-) | |
b62b6144 | 9 | |
4cacf5c4 FG |
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() | |
8d62fb87 DM |
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 | } | |
4cacf5c4 FG |
30 | -- |
31 | 2.1.4 | |
32 |