From be68e55cf692dac1a0b2001024626af35362f477 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 4e8b70ad47..19252c3af6 100755 --- a/projects/ARCTIC_MC/options +++ b/projects/ARCTIC_MC/options @@ -314,8 +314,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 installer (yes / no) INSTALLER_SUPPORT="yes" diff --git a/projects/ATV/options b/projects/ATV/options index 4558f94cb1..d6a16e93aa 100755 --- a/projects/ATV/options +++ b/projects/ATV/options @@ -315,8 +315,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 installer (yes / no) INSTALLER_SUPPORT="no" diff --git a/projects/Fusion/options b/projects/Fusion/options index afa4f59605..81409e49e1 100755 --- a/projects/Fusion/options +++ b/projects/Fusion/options @@ -314,8 +314,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 installer (yes / no) INSTALLER_SUPPORT="yes" diff --git a/projects/Generic/options b/projects/Generic/options index 9eb05230fe..67eb8d0d74 100755 --- a/projects/Generic/options +++ b/projects/Generic/options @@ -314,8 +314,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 installer (yes / no) INSTALLER_SUPPORT="yes" diff --git a/projects/Generic_OSS/options b/projects/Generic_OSS/options index 60cab4f68d..8b145bedaa 100755 --- a/projects/Generic_OSS/options +++ b/projects/Generic_OSS/options @@ -314,8 +314,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 installer (yes / no) INSTALLER_SUPPORT="yes" diff --git a/projects/ION/options b/projects/ION/options index d8b4def6ee..82e31f313d 100755 --- a/projects/ION/options +++ b/projects/ION/options @@ -314,8 +314,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 installer (yes / no) INSTALLER_SUPPORT="yes" diff --git a/projects/Intel/options b/projects/Intel/options index 576115079b..4bd76a596c 100755 --- a/projects/Intel/options +++ b/projects/Intel/options @@ -314,8 +314,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 installer (yes / no) INSTALLER_SUPPORT="yes" diff --git a/projects/RPi/options b/projects/RPi/options index 11edfbd216..147104dcb5 100755 --- a/projects/RPi/options +++ b/projects/RPi/options @@ -314,8 +314,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 installer (yes / no) INSTALLER_SUPPORT="no" diff --git a/projects/Ultra/options b/projects/Ultra/options index d08c974518..e4a5455d90 100755 --- a/projects/Ultra/options +++ b/projects/Ultra/options @@ -314,8 +314,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 installer (yes / no) INSTALLER_SUPPORT="yes" diff --git a/projects/Virtual/options b/projects/Virtual/options index fe0bf5a296..271004532f 100755 --- a/projects/Virtual/options +++ b/projects/Virtual/options @@ -309,8 +309,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 installer (yes / no) INSTALLER_SUPPORT="yes"