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 70e55e654f
commit ce57af41e9
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

@ -311,8 +311,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 automatic update support (yes / no) # build with automatic update support (yes / no)
UPDATE_SUPPORT="yes" UPDATE_SUPPORT="yes"

View File

@ -312,8 +312,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 automatic update support (yes / no) # build with automatic update support (yes / no)
UPDATE_SUPPORT="yes" UPDATE_SUPPORT="yes"

View File

@ -311,8 +311,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 automatic update support (yes / no) # build with automatic update support (yes / no)
UPDATE_SUPPORT="yes" UPDATE_SUPPORT="yes"

View File

@ -311,8 +311,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 automatic update support (yes / no) # build with automatic update support (yes / no)
UPDATE_SUPPORT="yes" UPDATE_SUPPORT="yes"

View File

@ -311,8 +311,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 automatic update support (yes / no) # build with automatic update support (yes / no)
UPDATE_SUPPORT="yes" UPDATE_SUPPORT="yes"

View File

@ -311,8 +311,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 automatic update support (yes / no) # build with automatic update support (yes / no)
UPDATE_SUPPORT="yes" UPDATE_SUPPORT="yes"

View File

@ -311,8 +311,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 automatic update support (yes / no) # build with automatic update support (yes / no)
UPDATE_SUPPORT="yes" UPDATE_SUPPORT="yes"

View File

@ -311,8 +311,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 automatic update support (yes / no) # build with automatic update support (yes / no)
UPDATE_SUPPORT="yes" UPDATE_SUPPORT="yes"

View File

@ -311,8 +311,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 automatic update support (yes / no) # build with automatic update support (yes / no)
UPDATE_SUPPORT="yes" UPDATE_SUPPORT="yes"

View File

@ -306,8 +306,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 automatic update support (yes / no) # build with automatic update support (yes / no)
UPDATE_SUPPORT="yes" UPDATE_SUPPORT="yes"