debug "found boot partition $1 for linux system on $partition, but cannot map to existing device"
else
debug "found boot partition $bootpart for linux system on $partition"
- if which grub-mount >/dev/null 2>&1 && \
+ if type grub-mount >/dev/null 2>&1 && \
grub-mount "$boottomnt" "$tmpmnt/boot" 2>/dev/null; then
mounted=1
else
os-prober (1.51) UNRELEASED; urgency=low
+ [ Joey Hess ]
* Relax the MS-DOS detection again now that it will not cause
false positives for non-FAT filesystems.
+ [ Colin Watson ]
+ * Use 'type' rather than 'which' to test for grub-mount, as d-i doesn't
+ have 'which'. Also test for grub-probe before using it, as that isn't
+ currently in grub-mount-udeb and I'm going to need to add it
+ (LP: #963471).
+
-- Joey Hess <joeyh@debian.org> Thu, 15 Mar 2012 13:46:44 -0400
os-prober (1.50) unstable; urgency=low
fi
mounted=
-if which grub-mount >/dev/null 2>&1 && \
+if type grub-mount >/dev/null 2>&1 && \
+ type grub-probe >/dev/null 2>&1 && \
grub-mount "$partition" "$tmpmnt" 2>/dev/null; then
mounted=1
type="$(grub-probe -d "$partition" -t fs)"
fi
mounted=
-if which grub-mount >/dev/null 2>&1 && \
+if type grub-mount >/dev/null 2>&1 && \
+ type grub-probe >/dev/null 2>&1 && \
grub-mount "$partition" "$tmpmnt" 2>/dev/null; then
mounted=1
type="$(grub-probe -d "$partition" -t fs)"