util-linux: use blocksize=1MB for creating the swapfile

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2013-05-08 23:25:58 +02:00
parent 8a041971f2
commit be68e55cf6
11 changed files with 21 additions and 21 deletions

View File

@ -37,7 +37,7 @@ fi
progress "creating swapfile" progress "creating swapfile"
echo "creating Swapfile ..." echo "creating Swapfile ..."
mkdir -p `dirname $SWAPFILE` mkdir -p `dirname $SWAPFILE`
dd if=/dev/zero of=$SWAPFILE bs=1024 count=$SWAPFILESIZE 2>&1 > /dev/null dd if=/dev/zero of=$SWAPFILE bs=1M count=$SWAPFILESIZE 2>&1 > /dev/null
mkswap $SWAPFILE 2>&1 > /dev/null mkswap $SWAPFILE 2>&1 > /dev/null
fi fi

View File

@ -314,8 +314,8 @@
# build with swap support (yes / no) # build with swap support (yes / no)
SWAP_SUPPORT="no" SWAP_SUPPORT="no"
# swapfile size if SWAP_SUPPORT=yes in kB (example: 262144 = 256MB ) # swapfile size if SWAP_SUPPORT=yes in MB
SWAPFILESIZE="262144" SWAPFILESIZE="256"
# build with installer (yes / no) # build with installer (yes / no)
INSTALLER_SUPPORT="yes" INSTALLER_SUPPORT="yes"

View File

@ -315,8 +315,8 @@
# build with swap support (yes / no) # build with swap support (yes / no)
SWAP_SUPPORT="yes" SWAP_SUPPORT="yes"
# swapfile size if SWAP_SUPPORT=yes in kB (example: 262144 = 256MB ) # swapfile size if SWAP_SUPPORT=yes in MB
SWAPFILESIZE="262144" SWAPFILESIZE="256"
# build with installer (yes / no) # build with installer (yes / no)
INSTALLER_SUPPORT="no" INSTALLER_SUPPORT="no"

View File

@ -314,8 +314,8 @@
# build with swap support (yes / no) # build with swap support (yes / no)
SWAP_SUPPORT="no" SWAP_SUPPORT="no"
# swapfile size if SWAP_SUPPORT=yes in kB (example: 262144 = 256MB ) # swapfile size if SWAP_SUPPORT=yes in MB
SWAPFILESIZE="262144" SWAPFILESIZE="256"
# build with installer (yes / no) # build with installer (yes / no)
INSTALLER_SUPPORT="yes" INSTALLER_SUPPORT="yes"

View File

@ -314,8 +314,8 @@
# build with swap support (yes / no) # build with swap support (yes / no)
SWAP_SUPPORT="no" SWAP_SUPPORT="no"
# swapfile size if SWAP_SUPPORT=yes in kB (example: 262144 = 256MB ) # swapfile size if SWAP_SUPPORT=yes in MB
SWAPFILESIZE="262144" SWAPFILESIZE="256"
# build with installer (yes / no) # build with installer (yes / no)
INSTALLER_SUPPORT="yes" INSTALLER_SUPPORT="yes"

View File

@ -314,8 +314,8 @@
# build with swap support (yes / no) # build with swap support (yes / no)
SWAP_SUPPORT="no" SWAP_SUPPORT="no"
# swapfile size if SWAP_SUPPORT=yes in kB (example: 262144 = 256MB ) # swapfile size if SWAP_SUPPORT=yes in MB
SWAPFILESIZE="262144" SWAPFILESIZE="256"
# build with installer (yes / no) # build with installer (yes / no)
INSTALLER_SUPPORT="yes" INSTALLER_SUPPORT="yes"

View File

@ -314,8 +314,8 @@
# build with swap support (yes / no) # build with swap support (yes / no)
SWAP_SUPPORT="no" SWAP_SUPPORT="no"
# swapfile size if SWAP_SUPPORT=yes in kB (example: 262144 = 256MB ) # swapfile size if SWAP_SUPPORT=yes in MB
SWAPFILESIZE="262144" SWAPFILESIZE="256"
# build with installer (yes / no) # build with installer (yes / no)
INSTALLER_SUPPORT="yes" INSTALLER_SUPPORT="yes"

View File

@ -314,8 +314,8 @@
# build with swap support (yes / no) # build with swap support (yes / no)
SWAP_SUPPORT="no" SWAP_SUPPORT="no"
# swapfile size if SWAP_SUPPORT=yes in kB (example: 262144 = 256MB ) # swapfile size if SWAP_SUPPORT=yes in MB
SWAPFILESIZE="262144" SWAPFILESIZE="256"
# build with installer (yes / no) # build with installer (yes / no)
INSTALLER_SUPPORT="yes" INSTALLER_SUPPORT="yes"

View File

@ -314,8 +314,8 @@
# build with swap support (yes / no) # build with swap support (yes / no)
SWAP_SUPPORT="no" SWAP_SUPPORT="no"
# swapfile size if SWAP_SUPPORT=yes in kB (example: 262144 = 256MB ) # swapfile size if SWAP_SUPPORT=yes in MB
SWAPFILESIZE="131072" SWAPFILESIZE="128"
# build with installer (yes / no) # build with installer (yes / no)
INSTALLER_SUPPORT="no" INSTALLER_SUPPORT="no"

View File

@ -314,8 +314,8 @@
# build with swap support (yes / no) # build with swap support (yes / no)
SWAP_SUPPORT="no" SWAP_SUPPORT="no"
# swapfile size if SWAP_SUPPORT=yes in kB (example: 262144 = 256MB ) # swapfile size if SWAP_SUPPORT=yes in MB
SWAPFILESIZE="262144" SWAPFILESIZE="256"
# build with installer (yes / no) # build with installer (yes / no)
INSTALLER_SUPPORT="yes" INSTALLER_SUPPORT="yes"

View File

@ -309,8 +309,8 @@
# build with swap support (yes / no) # build with swap support (yes / no)
SWAP_SUPPORT="no" SWAP_SUPPORT="no"
# swapfile size if SWAP_SUPPORT=yes in kB (example: 262144 = 256MB ) # swapfile size if SWAP_SUPPORT=yes in MB
SWAPFILESIZE="262144" SWAPFILESIZE="256"
# build with installer (yes / no) # build with installer (yes / no)
INSTALLER_SUPPORT="yes" INSTALLER_SUPPORT="yes"