--- a/linux-boot-prober +++ b/linux-boot-prober @@ -17,7 +17,7 @@ bootsv= bootuuid= -grep "^/dev/" /proc/mounts | parse_proc_mounts >"$OS_PROBER_TMP/mounted-map" || true +grep -P '^/dev/(?!root\s)' /proc/mounts | parse_proc_mounts >"$OS_PROBER_TMP/mounted-map" || true if [ -z "$1" ]; then ERR=y --- a/os-prober +++ b/os-prober @@ -128,7 +128,7 @@ # We need to properly canonicalize partitions with mount points and partitions # used in RAID -grep "^/dev/" /proc/mounts | parse_proc_mounts >"$OS_PROBER_TMP/mounted-map" || true +grep -P '^/dev/(?!root\s)' /proc/mounts | parse_proc_mounts >"$OS_PROBER_TMP/mounted-map" || true : >"$OS_PROBER_TMP/swaps-map" if [ -f /proc/swaps ]; then grep "^/dev/" /proc/swaps | parse_proc_swaps >"$OS_PROBER_TMP/swaps-map" || true