...
 
Commits (2)
os-prober (1.74) UNRELEASED; urgency=medium
* Add workaround for hangs with LVM installations (Closes: #853277):
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
os-prober (1.73) unstable; urgency=medium
[ Cyril Brulebois ]
......
......@@ -5,6 +5,13 @@ partition="$1"
. /usr/share/os-prober/common.sh
# Don't try and do stuff with what appears to be mounted as the root
# partition:
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
do_unmount() {
if [ "$mounted" ]; then
if ! umount "$tmpmnt"; then
......