ソースを参照

Soporte para LVM

Guzmán Castanedo Villalba 6 年 前
コミット
d02d11dd78
1 ファイル変更5 行追加2 行削除
  1. 5 2
      install

+ 5 - 2
install

@@ -20,7 +20,7 @@ OSInfo() {
 			REV=$(grep ^VERSION= /etc/os-release | cut -d = -f 2 | cut -d '"' -f 2)
 			ID_LIKE=$(grep ^ID_LIKE= /etc/os-release | cut -d = -f 2 | cut -d '"' -f 2)
 			for i in $ID_LIKE; do
-				printf "$i\n"
+				#printf "$i\n"
 				case $i in
 					debian|ubuntu)
 						debianOS=true
@@ -40,16 +40,19 @@ OSInfo() {
 			# Familia Debian (Debian, Ubuntu, Linux Mint, ...)
 			DIST="Debian"
 			REV=""
+			ID_LIKE="debian"
 			debianOS=true
 		elif [ -f /etc/redhat-release ]; then
 			# Familia Red-Hat (RHEL, Fedora, CentOS, ...)
 			DIST="Red-Hat"
 			REV=""
+			ID_LIKE="rhel"
 			rhelOS=true
 		else
 			# Other Linux (No Soportado)
 			DIST=""
 			REV=""
+			ID_LIKE=""
 		fi
 	else
 		#UNIX, OS X, ... (No Soportado)
@@ -57,7 +60,7 @@ OSInfo() {
 		REV=""
 	fi
 	#printf " $DIST $REV\n"
-	HDInfo=$(df -h | head -1)"\n"$(df -h | grep ^/dev/sd)
+	HDInfo=$(df -h | head -1)"\n"$(df -h | grep ^/dev/sd)"\n"$(df -h | grep ^/dev/mapper)
 }
 
 comprobarRoot() {