mirror_zfs/contrib/initramfs/scripts
наб 04344d5bc3 i-t: don't brokenly set the scheduler for root pool vdev's disks
This effectively reverts
  4fc411f7a3 (part of #6807) and
  f6fbe25664 (#9042) ‒
the code itself and latter PR cite symmetry with whole-disk-vdev
behaviour (presumably because rootfs vdevs are rarely whole disks),
but the code is broken for NVME devices (indeed, it'd strip the
controller number instead of the (potential) partition number, turning
"nvme0n1p1" into "nvmen1p1", which would then subsequently fail the
sysfs existence check); it could be fixed to handle those (and any
others) rather easily by dereferencing /sys/class/block/$devname,
but this isn't the place for setting this ‒ as noted in the commit that
removed setting the scheduler by default
(9e17e6f254) ‒ use an udev rule

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #11838
2021-04-07 13:28:56 -07:00
..
local-top Cleanup contrib/initramfs automake 2020-05-07 16:39:08 -07:00
.gitignore contrib/initramfs: switch to automake 2017-11-07 14:53:57 -08:00
Makefile.am initramfs: Eliminate substitutions 2020-03-10 09:53:20 -07:00
zfs i-t: don't brokenly set the scheduler for root pool vdev's disks 2021-04-07 13:28:56 -07:00