diff options
author | Patrick J Volkerding <volkerdi@slackware.com> | 2022-03-24 20:59:09 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2022-03-25 06:59:45 +0100 |
commit | e54f62d79bf02e3c5765a7b41fad36d70d9a2281 (patch) | |
tree | 25967f86242f9610715a20dca3e5d018868fc520 /usb-and-pxe-installers | |
parent | e38abb527a3caaffe6262dffedfde399f589ac14 (diff) | |
download | current-e54f62d79bf02e3c5765a7b41fad36d70d9a2281.tar.gz current-e54f62d79bf02e3c5765a7b41fad36d70d9a2281.tar.xz |
Thu Mar 24 20:59:09 UTC 202220220324205909
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.
Diffstat (limited to 'usb-and-pxe-installers')
-rw-r--r-- | usb-and-pxe-installers/usbimg2disk.sh | 4 |
1 files changed, 3 insertions, 1 deletions
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 |