Commit d70f8416 authored by Cyril Brulebois's avatar Cyril Brulebois

Only use the aforementioned workaround when lsblk is available.

parent 16eae615
......@@ -4,6 +4,7 @@ os-prober (1.74) UNRELEASED; urgency=medium
Run lsblk "$partition" at the top of 50mounted-tests to see if the
partition passed as a parameter might be the root partition. If
that's the case, exit early.
* Only use the aforementioned workaround when lsblk is available.
-- Cyril Brulebois <kibi@debian.org> Tue, 31 Jan 2017 22:11:23 +0100
......
......@@ -7,7 +7,7 @@ partition="$1"
# Don't try and do stuff with what appears to be mounted as the root
# partition:
if lsblk "$partition" | grep -qs /$; then
if type lsblk >/dev/null 2>&1 && lsblk "$partition" | grep -qs /$; then
debug "skipping $partition as it seems to be the root partition"
exit 1
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment