[Lunar-commits] <lunar-iso> Fixed the /proc/mounts input file to the correct grep.

Peter de Ridder peter at lunar-linux.org
Mon Sep 16 12:57:13 CEST 2013


commit 5363144b62eaf27dc2f64755d746a9bf94b81371
Author: Peter de Ridder <peter at lunar-linux.org>
Date: Mon, 16 Sep 2013 03:55:48 -0700
URL: https://github.com/lunar-linux/lunar-iso/commit/5363144b62eaf27dc2f64755d746a9bf94b81371

Fixed the /proc/mounts input file to the correct grep.
---
  lunar-install/sbin/lunar-install | +1/-1     
  1 file changed, 1 insertion(+), 1 deletion(-)

--- a/lunar-install/sbin/lunar-install
+++ b/lunar-install/sbin/lunar-install
@@ -251,7 +251,7 @@ list_block_devices()
 	local DEVICE FDEVICE PDEVICE
 
     # Grab protected device when booting iso from other media then cdrom
-    PDEVICE=$(basename `grep -v '^rootfs' | fgrep -w '/' /proc/mounts | cut -d' ' -f1` 2> /dev/null)
+    PDEVICE=$(basename `grep -v '^rootfs' /proc/mounts | fgrep -w '/' | cut -d' ' -f1` 2> /dev/null)
 
 	for DEVICE in $(tail +3 /proc/partitions | awk '{print $4}' | grep -v -e ${PDEVICE:-^$} -e loop); do
 		FDEVICE=$(lsh unmap_device /dev/$DEVICE)




More information about the Lunar-commits mailing list