Signed-off-by: Cyril Brulebois <kibi@debian.org>
fi
}
+is_dos_extended_partition() {
+ if type blkid >/dev/null 2>&1; then
+ local output
+
+ output="$(blkid -o export $1)"
+
+ # old blkid (util-linux << 2.24) errors out on extended p.
+ if [ "$?" = "2" ]; then
+ return 0
+ fi
+
+ # dos partition type and no filesystem type?...
+ if echo $output | grep -q ' PTTYPE=dos ' &&
+ ! echo $output | grep -q ' TYPE='; then
+ return 0
+ else
+ return 1
+ fi
+ fi
+
+ return 1
+}
+
parse_proc_mounts () {
while read -r line; do
set -f
+os-prober (1.68) UNRELEASED; urgency=medium
+
+ * Adjust extended dos partition support for blkid/util-linux 2.24+,
+ thanks to Andreas Henriksson (Closes: #735169).
+
+ -- Cyril Brulebois <kibi@debian.org> Thu, 08 Oct 2015 02:30:41 +0200
+
os-prober (1.67) unstable; urgency=medium
[ James Clarke ]
types='ntfs-3g ntfs'
fi
elif [ -z "$types" ]; then
+ if is_dos_extended_partition "$partition"; then
+ debug "$1 looks like an extended dos partition; skipping"
+ exit 0
+ fi
if type cryptsetup >/dev/null 2>&1 && \
cryptsetup luksDump "$partition" >/dev/null 2>&1; then
debug "$1 is a LUKS partition; skipping"