summaryrefslogtreecommitdiffstats
path: root/perl-install/bootloader.pm
diff options
context:
space:
mode:
authorOlivier Blin <dev@blino.org>2018-04-09 22:50:24 +0200
committerOlivier Blin <dev@blino.org>2018-05-16 02:10:35 +0200
commitb4638b0e518e2cc7cba2cee2d3b7d0ae6f14097b (patch)
tree8f05909b51e278e02dbfb8137bfbee68692ca2b1 /perl-install/bootloader.pm
parent960c89a63d41dfa2e2802ddfc92c7ddf92dafbd5 (diff)
downloaddrakx-b4638b0e518e2cc7cba2cee2d3b7d0ae6f14097b.tar
drakx-b4638b0e518e2cc7cba2cee2d3b7d0ae6f14097b.tar.gz
drakx-b4638b0e518e2cc7cba2cee2d3b7d0ae6f14097b.tar.bz2
drakx-b4638b0e518e2cc7cba2cee2d3b7d0ae6f14097b.tar.xz
drakx-b4638b0e518e2cc7cba2cee2d3b7d0ae6f14097b.zip
bootloader: add specific boot options for Raspberry Pi I/O scheduler (deadline)
elevator=deadline is supposed to give better performance on flash storage, and used by default on most Raspberry Pi distributions. Ideally, this should not be set here for specific boards, but automatically for all architectures depending on the storage type. Archlinux appears to use a /etc/tmpfiles.d/set_IO_scheduler.conf file for this.
Diffstat (limited to 'perl-install/bootloader.pm')
-rw-r--r--perl-install/bootloader.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm
index a93da7f3b..f906bc7ef 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -625,7 +625,7 @@ sub read_uboot() {
my $is_raspberry = cat_("/proc/device-tree/model") =~ /^Raspberry Pi/;
if ($is_raspberry) {
- $b{perImageAppend} //= "8250.nr_uarts=1 console=ttyS0,115200 console=tty1";
+ $b{perImageAppend} //= "8250.nr_uarts=1 console=ttyS0,115200 console=tty1 elevator=deadline";
}
$b{perImageAppend} //= $b{entries}[0]{append};