diff --git a/contrib/initramfs/scripts/zfs.in b/contrib/initramfs/scripts/zfs.in index c0755a371a..18c8ca2ad5 100644 --- a/contrib/initramfs/scripts/zfs.in +++ b/contrib/initramfs/scripts/zfs.in @@ -900,7 +900,7 @@ mountroot() }' | while read i do - if [ -e "/sys/block/$i/queue/scheduler" ] + if grep -sq noop /sys/block/$i/queue/scheduler then echo noop > "/sys/block/$i/queue/scheduler" fi