STUB: Installmanager does not need to check available hard disk size 30/12930/1
authoryongsung1.kim <yongsung1.kim@samsung.com>
Tue, 26 Nov 2013 06:29:36 +0000 (15:29 +0900)
committeryongsung1.kim <yongsung1.kim@samsung.com>
Tue, 26 Nov 2013 06:29:36 +0000 (15:29 +0900)
before installation.
Installmanager works to install, remove and update. Removing and
updating cases does not need to check available hard disk size. So, we
delete stub code for checking available hard disk size.

Change-Id: I391bc578b4687dfa275640e58aa483ee3b15c970
Signed-off-by: yongsung1.kim <yongsung1.kim@samsung.com>
os_stubs/linux/installer_stub

index 7b86891..5906f34 100755 (executable)
@@ -12,7 +12,6 @@ else    CI=''; CE=''; CX=''; CN=''
 fi
 
 ###### Get system information ######
-AVAIL_SPACE=`df -k . | tail -n -1 |  awk '{if ( $4 ~ /%/) { print $3 } else { print $4 } }'`
 DISPLAY_MODE=$DISPLAY
 
 OS_BLOCKSIZE=`df -k . |head -n 1 | awk '{if ( $4 ~ /%/) { print $1 } else { print $2 } }'`
@@ -92,13 +91,6 @@ if [ "ubuntu" = "${OS_NAME}" ] ; then
 fi
 ####################################
 
-## check the available space ##
-if [ $AVAIL_SPACE -lt 5452596 ]; then
-       echo "${CE} Available blocks: $AVAIL_SPACE($OS_BLOCKSIZE)    Needed blocks: about 5.2GB "
-       echo " Please free up the required Disk Space and try again. $CN"
-       exit 1
-fi
-
 ## check the root user ##
 if [ `whoami` = "root" ] ; then
        echo "${CE} Do not install as 'root' user or 'su' commands. ${CN}"