Install hdparm for benchmarks
This commit is contained in:
parent
5757275d81
commit
f33d4f17de
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue