From ce57af41e90dc5b5de9765433e9edc5bae2d07dd Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Wed, 8 May 2013 23:25:58 +0200 Subject: [PATCH] util-linux: use blocksize=1MB for creating the swapfile Signed-off-by: Stephan Raue --- packages/sysutils/util-linux/scripts/32_swapfile | 2 +- projects/ARCTIC_MC/options | 4 ++-- projects/ATV/options | 4 ++-- projects/Fusion/options | 4 ++-- projects/Generic/options | 4 ++-- projects/Generic_OSS/options | 4 ++-- projects/ION/options | 4 ++-- projects/Intel/options | 4 ++-- projects/RPi/options | 4 ++-- projects/Ultra/options | 4 ++-- projects/Virtual/options | 4 ++-- 11 files changed, 21 insertions(+), 21 deletions(-) diff --git a/packages/sysutils/util-linux/scripts/32_swapfile b/packages/sysutils/util-linux/scripts/32_swapfile index 4f049be488..bc3f4030df 100644 --- a/packages/sysutils/util-linux/scripts/32_swapfile +++ b/packages/sysutils/util-linux/scripts/32_swapfile @@ -37,7 +37,7 @@ fi progress "creating swapfile" echo "creating 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 fi diff --git a/projects/ARCTIC_MC/options b/projects/ARCTIC_MC/options index 8c33d1abd1..22242600d1 100755 --- a/projects/ARCTIC_MC/options +++ b/projects/ARCTIC_MC/options @@ -311,8 +311,8 @@ # build with swap support (yes / no) SWAP_SUPPORT="no" -# swapfile size if SWAP_SUPPORT=yes in kB (example: 262144 = 256MB ) - SWAPFILESIZE="262144" +# swapfile size if SWAP_SUPPORT=yes in MB + SWAPFILESIZE="256" # build with automatic update support (yes / no) UPDATE_SUPPORT="yes" diff --git a/projects/ATV/options b/projects/ATV/options index 5ece8da1fb..ad794221bc 100755 --- a/projects/ATV/options +++ b/projects/ATV/options @@ -312,8 +312,8 @@ # build with swap support (yes / no) SWAP_SUPPORT="yes" -# swapfile size if SWAP_SUPPORT=yes in kB (example: 262144 = 256MB ) - SWAPFILESIZE="262144" +# swapfile size if SWAP_SUPPORT=yes in MB + SWAPFILESIZE="256" # build with automatic update support (yes / no) UPDATE_SUPPORT="yes" diff --git a/projects/Fusion/options b/projects/Fusion/options index e9da651991..d70bdd533c 100755 --- a/projects/Fusion/options +++ b/projects/Fusion/options @@ -311,8 +311,8 @@ # build with swap support (yes / no) SWAP_SUPPORT="no" -# swapfile size if SWAP_SUPPORT=yes in kB (example: 262144 = 256MB ) - SWAPFILESIZE="262144" +# swapfile size if SWAP_SUPPORT=yes in MB + SWAPFILESIZE="256" # build with automatic update support (yes / no) UPDATE_SUPPORT="yes" diff --git a/projects/Generic/options b/projects/Generic/options index 323eaae523..9a0f25a347 100755 --- a/projects/Generic/options +++ b/projects/Generic/options @@ -311,8 +311,8 @@ # build with swap support (yes / no) SWAP_SUPPORT="no" -# swapfile size if SWAP_SUPPORT=yes in kB (example: 262144 = 256MB ) - SWAPFILESIZE="262144" +# swapfile size if SWAP_SUPPORT=yes in MB + SWAPFILESIZE="256" # build with automatic update support (yes / no) UPDATE_SUPPORT="yes" diff --git a/projects/Generic_OSS/options b/projects/Generic_OSS/options index 4169431a68..fa93b17fc6 100755 --- a/projects/Generic_OSS/options +++ b/projects/Generic_OSS/options @@ -311,8 +311,8 @@ # build with swap support (yes / no) SWAP_SUPPORT="no" -# swapfile size if SWAP_SUPPORT=yes in kB (example: 262144 = 256MB ) - SWAPFILESIZE="262144" +# swapfile size if SWAP_SUPPORT=yes in MB + SWAPFILESIZE="256" # build with automatic update support (yes / no) UPDATE_SUPPORT="yes" diff --git a/projects/ION/options b/projects/ION/options index 92b3ed28ff..d5d4f5d102 100755 --- a/projects/ION/options +++ b/projects/ION/options @@ -311,8 +311,8 @@ # build with swap support (yes / no) SWAP_SUPPORT="no" -# swapfile size if SWAP_SUPPORT=yes in kB (example: 262144 = 256MB ) - SWAPFILESIZE="262144" +# swapfile size if SWAP_SUPPORT=yes in MB + SWAPFILESIZE="256" # build with automatic update support (yes / no) UPDATE_SUPPORT="yes" diff --git a/projects/Intel/options b/projects/Intel/options index 0fd79c6a10..8ad97b7f85 100755 --- a/projects/Intel/options +++ b/projects/Intel/options @@ -311,8 +311,8 @@ # build with swap support (yes / no) SWAP_SUPPORT="no" -# swapfile size if SWAP_SUPPORT=yes in kB (example: 262144 = 256MB ) - SWAPFILESIZE="262144" +# swapfile size if SWAP_SUPPORT=yes in MB + SWAPFILESIZE="256" # build with automatic update support (yes / no) UPDATE_SUPPORT="yes" diff --git a/projects/RPi/options b/projects/RPi/options index 82ec5a01d4..b958883b33 100755 --- a/projects/RPi/options +++ b/projects/RPi/options @@ -311,8 +311,8 @@ # build with swap support (yes / no) SWAP_SUPPORT="no" -# swapfile size if SWAP_SUPPORT=yes in kB (example: 262144 = 256MB ) - SWAPFILESIZE="131072" +# swapfile size if SWAP_SUPPORT=yes in MB + SWAPFILESIZE="128" # build with automatic update support (yes / no) UPDATE_SUPPORT="yes" diff --git a/projects/Ultra/options b/projects/Ultra/options index fccf6f61ec..d1c96b98db 100755 --- a/projects/Ultra/options +++ b/projects/Ultra/options @@ -311,8 +311,8 @@ # build with swap support (yes / no) SWAP_SUPPORT="no" -# swapfile size if SWAP_SUPPORT=yes in kB (example: 262144 = 256MB ) - SWAPFILESIZE="262144" +# swapfile size if SWAP_SUPPORT=yes in MB + SWAPFILESIZE="256" # build with automatic update support (yes / no) UPDATE_SUPPORT="yes" diff --git a/projects/Virtual/options b/projects/Virtual/options index 85395e0d9e..f755dc2eb6 100755 --- a/projects/Virtual/options +++ b/projects/Virtual/options @@ -306,8 +306,8 @@ # build with swap support (yes / no) SWAP_SUPPORT="no" -# swapfile size if SWAP_SUPPORT=yes in kB (example: 262144 = 256MB ) - SWAPFILESIZE="262144" +# swapfile size if SWAP_SUPPORT=yes in MB + SWAPFILESIZE="256" # build with automatic update support (yes / no) UPDATE_SUPPORT="yes"