Skip to content
Snippets Groups Projects
Commit f33d4f17 authored by Bob Mottram's avatar Bob Mottram
Browse files

Install hdparm for benchmarks

parent 5757275d
No related branches found
No related tags found
No related merge requests found
......@@ -1715,7 +1715,7 @@ image_setup_utils() {
chroot "$rootdir" apt-get -yq dist-upgrade
chroot "$rootdir" apt-get -yq install ca-certificates
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
chroot "$rootdir" apt-get -yq install linux-image-amd64
......
......@@ -796,6 +796,9 @@ function install_shellcheck {
function microsd_card_optimisations {
# These values can improve performance on microSD cards
apt-get -yq install hdparm
printf '#!/bin/bash\n' > /usr/bin/enable_optimisations
if [ -f /sys/devices/virtual/bdi/179:0/read_ahead_kb ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment