#16 Optimize for low memory mode

pull/20/head
Bohan Yang 4 years ago committed by GitHub
parent 0c35e2ca12
commit fed3acddf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      debi.sh

@ -692,7 +692,7 @@ installer_directory="$boot_directory$installer"
# shellcheck disable=SC2034 # shellcheck disable=SC2034
mem=$(grep ^MemTotal: /proc/meminfo | { read -r x y z; echo "$y"; }) mem=$(grep ^MemTotal: /proc/meminfo | { read -r x y z; echo "$y"; })
[ $((mem / 1024)) -lt 483 ] && kernel_params="$kernel_params lowmem/low=" [ $((mem / 1024)) -le 512 ] && kernel_params="$kernel_params lowmem/low=1"
initrd="$installer_directory/initrd.gz" initrd="$installer_directory/initrd.gz"
[ "$firmware" = true ] && initrd="$initrd $installer_directory/firmware.cpio.gz" [ "$firmware" = true ] && initrd="$initrd $installer_directory/firmware.cpio.gz"

Loading…
Cancel
Save