wok rev 24001

linux64-zram: more than 8GB RAM fix
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jan 14 12:34:16 2021 +0000 (7 weeks ago)
parents 1bb3a050ea16
children e04269291317
files linux64-zram/stuff/compcache syslinux/stuff/iso2exe/iso2exe.sh
line diff
     1.1 --- a/linux64-zram/stuff/compcache	Wed Jan 13 21:31:22 2021 +0000
     1.2 +++ b/linux64-zram/stuff/compcache	Thu Jan 14 12:34:16 2021 +0000
     1.3 @@ -25,7 +25,7 @@
     1.4  	END { if (c*s>0) p/=s/c; if (p==0) p++; print p}' /proc/cpuinfo)
     1.5      modprobe zram num_devices=$devices &&
     1.6      for i in $(seq 0 $(($devices-1))); do
     1.7 -	awk "/MemTotal/ { print \$2 * 1024 * ${SIZE%\%} / 100 / $devices }" \
     1.8 +	awk "/MemTotal/ { printf(\"%d\\n\", \$2 * 1024 * ${SIZE%\%} / 100 / $devices) }" \
     1.9  		< /proc/meminfo > /sys/block/zram$i/disksize
    1.10      done
    1.11      status
     2.1 --- a/syslinux/stuff/iso2exe/iso2exe.sh	Wed Jan 13 21:31:22 2021 +0000
     2.2 +++ b/syslinux/stuff/iso2exe/iso2exe.sh	Thu Jan 14 12:34:16 2021 +0000
     2.3 @@ -107,11 +107,9 @@
     2.4  		i=$(($(get 20 $1)-0xC0))
     2.5  		store $(($i-6)) $(($(stat -m /tmp/mnt$$/boot/linld.com | sed q)*2048)) $1 32
     2.6  		store $(($i-2)) $(stat -c %s /tmp/mnt$$/boot/linld.com) $1
     2.7 -		r="rootfs.gz"
     2.8 -		grep -qE 'rootfs[0-9]' /tmp/mnt$$/boot/isolinux/isolinux.cfg &&
     2.9  		r="$(sed '/rootfs[0-9]/!d;s|.* initrd=||;s|/boot/||g;s| .*||' \
    2.10  			/tmp/mnt$$/boot/isolinux/isolinux.cfg | tail -n1)"
    2.11 -		echo -n "image=/boot/bzImage initrd=$r,! autologin rdinit=/init.exe" | \
    2.12 +		echo -n "image=/boot/bzImage initrd=${r:-rootfs.gz},! autologin rdinit=/init.exe" | \
    2.13  		ddn bs=1 of=$1 conv=notrunc seek=$(($i-134))
    2.14  	fi
    2.15  	umount /tmp/mnt$$