busybox: remove SYSTEM-to-RAM support, it dont improves much

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2014-07-24 06:53:16 +02:00
parent df3617e0f6
commit 1e12d8be3f
3 changed files with 1 additions and 26 deletions

View File

@ -232,10 +232,6 @@ makeinstall_init() {
touch $INSTALL/etc/fstab
ln -sf /proc/self/mounts $INSTALL/etc/mtab
if [ -f $PROJECT_DIR/$PROJECT/initramfs/initramfs.conf ]; then
cp $PROJECT_DIR/$PROJECT/initramfs/initramfs.conf $INSTALL/etc
fi
cp $PKG_DIR/scripts/init $INSTALL
chmod 755 $INSTALL/init
}

View File

@ -52,14 +52,6 @@
NBD_DEVS="0"
FLASH_FREE_MIN="5"
INSTALLED_MEMORY=`cat /proc/meminfo | grep 'MemTotal:' | awk '{print $2}'`
SYSTEM_TORAM_LIMIT=1024000
# load any configuration
if [ -f "/etc/initramfs.conf" ]; then
. /etc/initramfs.conf
fi
# hide kernel log messages on console
echo '1 4 1 7' > /proc/sys/kernel/printk
@ -124,9 +116,6 @@
nosplash)
SPLASH=no
;;
noram)
SYSTEM_TORAM=no
;;
overlay)
OVERLAY=yes
;;
@ -603,13 +592,7 @@
prepare_sysroot() {
progress "Preparing system"
if [ "$SYSTEM_TORAM" = "no" -o "$INSTALLED_MEMORY" -lt "$SYSTEM_TORAM_LIMIT" ]; then
mount_part "/flash/$IMAGE_SYSTEM" "/sysroot" "ro,loop"
else
cp /flash/$IMAGE_SYSTEM /dev/$IMAGE_SYSTEM
mount_part "/dev/$IMAGE_SYSTEM" "/sysroot" "ro,loop"
fi
mount_part "/flash/$IMAGE_SYSTEM" "/sysroot" "ro,loop"
mount --move /flash /sysroot/flash
if [ -n "$disk" ]; then

View File

@ -1,4 +0,0 @@
# min size to support System to RAM
# default for RaspberryPi we set to 356MB (256MB + appr. image size (100MB) )
# to be sure we have at least 256MB free
SYSTEM_TORAM_LIMIT=364544