From e54f62d79bf02e3c5765a7b41fad36d70d9a2281 Mon Sep 17 00:00:00 2001 From: Patrick J Volkerding Date: Thu, 24 Mar 2022 20:59:09 +0000 Subject: Thu Mar 24 20:59:09 UTC 2022 d/python3-3.9.12-x86_64-1.txz: Upgraded. This is a bugfix release. For more information, see: https://pythoninsider.blogspot.com/2022/03/python-3104-and-3912-are-now-available.html usb-and-pxe-installers/usbimg2disk.sh: Upgraded. Calculate the space requirement by checking the size of the packages in the Slackware directory tree. --- usb-and-pxe-installers/usbimg2disk.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'usb-and-pxe-installers/usbimg2disk.sh') diff --git a/usb-and-pxe-installers/usbimg2disk.sh b/usb-and-pxe-installers/usbimg2disk.sh index fe130f676..74b0f3cb2 100644 --- a/usb-and-pxe-installers/usbimg2disk.sh +++ b/usb-and-pxe-installers/usbimg2disk.sh @@ -218,6 +218,8 @@ if [ -n "$REPODIR" ]; then # This also takes care of stripping a trailing '/', which is required # for the rsync command to work as intended: REPOSROOT="$(cd $(dirname $REPODIR); pwd)/$(basename $REPODIR)" + # Use this to set the space requirement: + MININSFREE=$(expr $(du -s ${REPOSROOT}/slackware* | cut -f 1) / 1024) fi fi @@ -237,7 +239,7 @@ else fi # Prepare the environment: -MININSFREE=2200 # minimum in MB required for a Slackware tree +MININSFREE=${MININSFREE:-3134} # minimum in MB required for a Slackware tree UNATTENDED=${UNATTENDED:-0} # unattended means: never ask questions. REFORMAT=${REFORMAT:-0} # do not try to reformat by default LOGFILE=${LOGFILE:-/dev/null} # silence by default -- cgit v1.2.3