treewide: replace /sys/devices/virtual/ubi by /sys/class/ubi
authorDaniel Golle <daniel@makrotopia.org>
Wed, 15 Feb 2023 03:06:05 +0000 (03:06 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Wed, 15 Feb 2023 03:27:59 +0000 (03:27 +0000)
commite8625c89efbbbe12a5934c10fc3478fd2f70fb21
treedf96a66ab704dd1333293429da5a3e2a84a38cc3
parent62e583ddb9c1f8a5d760ff0612433c5e262fe481
treewide: replace /sys/devices/virtual/ubi by /sys/class/ubi

Starting from Linux Kernel version 6.3 UBI devices will no longer be
considered virtual, but rather have an MTD device parent. Hence they
will no longer be listed under /sys/devices/virtual/ubi which is
used in multiple places in OpenWrt. Prepare for future kernels by
using /sys/class/ubi instead of /sys/devuces/virtual/ubi.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
package/base-files/files/lib/upgrade/nand.sh
target/linux/bcm4908/base-files/lib/preinit/75_rootfs_prepare
target/linux/ipq40xx/base-files/lib/upgrade/linksys.sh
target/linux/ipq806x/base-files/lib/upgrade/linksys.sh
target/linux/kirkwood/base-files/lib/upgrade/linksys.sh
target/linux/mvebu/cortexa9/base-files/lib/upgrade/linksys.sh