Install hdparm for benchmarks

This commit is contained in:
Bob Mottram 2018-04-21 18:33:28 +01:00
parent 5757275d81
commit f33d4f17de
2 changed files with 4 additions and 1 deletions

View File

@ -1715,7 +1715,7 @@ image_setup_utils() {
chroot "$rootdir" apt-get -yq dist-upgrade chroot "$rootdir" apt-get -yq dist-upgrade
chroot "$rootdir" apt-get -yq install ca-certificates chroot "$rootdir" apt-get -yq install ca-certificates
chroot "$rootdir" apt-get -yq install apt-utils chroot "$rootdir" apt-get -yq install apt-utils
chroot "$rootdir" apt-get -yq install shellcheck chroot "$rootdir" apt-get -yq install shellcheck hdparm
if [[ "$ARCHITECTURE" == 'amd64' ]]; then if [[ "$ARCHITECTURE" == 'amd64' ]]; then
chroot "$rootdir" apt-get -yq install linux-image-amd64 chroot "$rootdir" apt-get -yq install linux-image-amd64

View File

@ -796,6 +796,9 @@ function install_shellcheck {
function microsd_card_optimisations { function microsd_card_optimisations {
# These values can improve performance on microSD cards # These values can improve performance on microSD cards
apt-get -yq install hdparm
printf '#!/bin/bash\n' > /usr/bin/enable_optimisations printf '#!/bin/bash\n' > /usr/bin/enable_optimisations
if [ -f /sys/devices/virtual/bdi/179:0/read_ahead_kb ]; then if [ -f /sys/devices/virtual/bdi/179:0/read_ahead_kb ]; then