From: W. Trevor King Date: Wed, 24 Mar 2010 11:46:31 +0000 (-0400) Subject: Don't force df line to end in $WORKDIR in sysresccd-custom. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5a8dd3c6971358dccfdf9ac862f34571b09d076b;p=systemrescuecd.git Don't force df line to end in $WORKDIR in sysresccd-custom. "df -m -P $WORKDIR" should only have returned that entry, and the match breaks if $WORKDIR is a subdirectory of a mount point. --- diff --git a/portage-overlay/sys-apps/sysresccd-scripts/files/sysresccd-custom b/portage-overlay/sys-apps/sysresccd-scripts/files/sysresccd-custom index 2cd8484..e992ebe 100755 --- a/portage-overlay/sys-apps/sysresccd-scripts/files/sysresccd-custom +++ b/portage-overlay/sys-apps/sysresccd-scripts/files/sysresccd-custom @@ -73,7 +73,7 @@ die() # $1 == MB required by the function check_freespace() { - SIZE=`(df -m -P ${WORKDIR}) | grep " ${WORKDIR}$" | tail -n 1 | awk '{print $4}'` + SIZE=`(df -m -P ${WORKDIR}) | tail -n 1 | awk '{print $4}'` if [ -z "$SIZE" ] then help_readman "Could not determine amount of room in ${WORKDIR}"