change IO scheduler to BFQ

even on NVMe's
This commit is contained in:
Anders Rytter Hansen 2023-11-04 21:15:50 +01:00
commit 61fa301aff
2 changed files with 8 additions and 0 deletions

View file

@ -6,6 +6,7 @@ ARG FEDORA_MAJOR_VERSION="${FEDORA_MAJOR_VERSION:-38}"
FROM ghcr.io/andersrh/my-ostree-os-kernel-akmods:main-38 AS builder
ARG CACHEBUST=0
ARG IMAGE_NAME="${IMAGE_NAME}"
ARG FEDORA_MAJOR_VERSION="${FEDORA_MAJOR_VERSION}"
@ -39,6 +40,8 @@ RUN sed -i 's/zram-size.*/zram-size = min(ram, 16384)/' /usr/lib/systemd/zram-ge
# Copy config files
COPY etc /etc
# Copy /usr
COPY usr /usr
# Clear cache, /var and /tmp and commit ostree
RUN rm -rf /tmp/* /var/* && mkdir -p /var/tmp && chmod -R 1777 /var/tmp && \

View file

@ -0,0 +1,5 @@
# do not edit this file, it will be overwritten on update
ACTION=="add", SUBSYSTEM=="block", ENV{DEVTYPE}=="disk", \
KERNEL=="mmcblk*[0-9]|msblk*[0-9]|mspblk*[0-9]|sd*[!0-9]|sr*|nvme[0-9]*", \
ATTR{queue/scheduler}="bfq"