# HG changeset patch # User Pascal Bellard # Date 1610627656 0 # Node ID 67987cd1245be94ba004212236feda784171dc88 # Parent 1bb3a050ea168124915c83cffeea05bc7039072d linux64-zram: more than 8GB RAM fix diff -r 1bb3a050ea16 -r 67987cd1245b linux64-zram/stuff/compcache --- a/linux64-zram/stuff/compcache Wed Jan 13 21:31:22 2021 +0000 +++ b/linux64-zram/stuff/compcache Thu Jan 14 12:34:16 2021 +0000 @@ -25,7 +25,7 @@ END { if (c*s>0) p/=s/c; if (p==0) p++; print p}' /proc/cpuinfo) modprobe zram num_devices=$devices && for i in $(seq 0 $(($devices-1))); do - awk "/MemTotal/ { print \$2 * 1024 * ${SIZE%\%} / 100 / $devices }" \ + awk "/MemTotal/ { printf(\"%d\\n\", \$2 * 1024 * ${SIZE%\%} / 100 / $devices) }" \ < /proc/meminfo > /sys/block/zram$i/disksize done status diff -r 1bb3a050ea16 -r 67987cd1245b syslinux/stuff/iso2exe/iso2exe.sh --- a/syslinux/stuff/iso2exe/iso2exe.sh Wed Jan 13 21:31:22 2021 +0000 +++ b/syslinux/stuff/iso2exe/iso2exe.sh Thu Jan 14 12:34:16 2021 +0000 @@ -107,11 +107,9 @@ i=$(($(get 20 $1)-0xC0)) store $(($i-6)) $(($(stat -m /tmp/mnt$$/boot/linld.com | sed q)*2048)) $1 32 store $(($i-2)) $(stat -c %s /tmp/mnt$$/boot/linld.com) $1 - r="rootfs.gz" - grep -qE 'rootfs[0-9]' /tmp/mnt$$/boot/isolinux/isolinux.cfg && r="$(sed '/rootfs[0-9]/!d;s|.* initrd=||;s|/boot/||g;s| .*||' \ /tmp/mnt$$/boot/isolinux/isolinux.cfg | tail -n1)" - echo -n "image=/boot/bzImage initrd=$r,! autologin rdinit=/init.exe" | \ + echo -n "image=/boot/bzImage initrd=${r:-rootfs.gz},! autologin rdinit=/init.exe" | \ ddn bs=1 of=$1 conv=notrunc seek=$(($i-134)) fi umount /tmp/mnt$$