Commits

Uelsk8s  committed 2fe3657

update os-prober to 1.63 add mount as default mounter

  • Participants
  • Parent commits c4ff542

Comments (0)

Files changed (1)

File var/vabs/os-prober/src/patches/mountfix.patch

 diff -Naur os-prober-1.63/linux-boot-probes/common/50mounted-tests os-prober-1.63.patched/linux-boot-probes/common/50mounted-tests
 --- os-prober-1.63/linux-boot-probes/common/50mounted-tests	2012-03-27 19:01:05.000000000 -0600
-+++ os-prober-1.63.patched/linux-boot-probes/common/50mounted-tests	2014-01-17 10:57:45.000000000 -0700
-@@ -34,13 +34,18 @@
++++ os-prober-1.63.patched/linux-boot-probes/common/50mounted-tests	2014-01-17 13:10:00.000000000 -0700
+@@ -34,13 +34,19 @@
  fi
  
  mounted=
 +		fi
 +		debug "mounted as $type filesystem"
 +		mounted=1
++		break
 +	fi
  	ro_partition "$partition"
  	for type in $types; do
  		if mount -o ro -t "$type" "$partition" "$tmpmnt" 2>/dev/null; then
-@@ -48,6 +53,12 @@
+@@ -48,6 +54,12 @@
  			break
  		fi
  	done
  fi
  
  if [ "$mounted" ]; then
-@@ -63,6 +74,10 @@
+@@ -63,6 +75,10 @@
  				umount "$tmpmnt/boot" 2>/dev/null || true 	
  				if ! umount "$tmpmnt"; then
  					warn "failed to umount $tmpmnt"
  				fi
  				rmdir "$tmpmnt" || true
  				exit 0
-@@ -73,6 +88,10 @@
+@@ -73,6 +89,10 @@
  	umount "$tmpmnt/boot" 2>/dev/null || true 	
  	if ! umount "$tmpmnt"; then
  		warn "failed to umount $tmpmnt"
  
 diff -Naur os-prober-1.63/os-probes/common/50mounted-tests os-prober-1.63.patched/os-probes/common/50mounted-tests
 --- os-prober-1.63/os-probes/common/50mounted-tests	2012-11-03 20:01:55.000000000 -0600
-+++ os-prober-1.63.patched/os-probes/common/50mounted-tests	2014-01-17 10:57:17.000000000 -0700
-@@ -46,7 +46,27 @@
++++ os-prober-1.63.patched/os-probes/common/50mounted-tests	2014-01-17 13:09:22.000000000 -0700
+@@ -46,7 +46,28 @@
  fi
  
  mounted=
 +		fi
 +		debug "mounted as $type filesystem"
 +		mounted=1
++		break
 +	fi
 +	ro_partition "$partition"
 +	for type in $types $delaytypes; do
     type grub-probe >/dev/null 2>&1 && \
     grub-mount "$partition" "$tmpmnt" 2>/dev/null; then
  	mounted=1
-@@ -57,15 +77,6 @@
+@@ -57,15 +78,6 @@
  		debug "mounted using GRUB, but unknown filesystem?"
  		type=fuseblk
  	fi
  fi
  
  if [ "$mounted" ]; then
-@@ -76,6 +87,10 @@
+@@ -76,6 +88,10 @@
  				debug "os found by subtest $test"
  				if ! umount "$tmpmnt"; then
  					warn "failed to umount $tmpmnt"
  				fi
  				rmdir "$tmpmnt" || true
  				exit 0
-@@ -84,6 +99,10 @@
+@@ -84,6 +100,10 @@
  	done
  	if ! umount "$tmpmnt"; then
  		warn "failed to umount $tmpmnt"