從 RHEL6 到 RHEL7,udev/rules.d 語法有任何變化嗎?

從 RHEL6 到 RHEL7,udev/rules.d 語法有任何變化嗎?

RHEL6 中定義的本機規則是否可以像在 RHEL7 中一樣使用,或者我們需要在語法方面進行更改,然後才能在 RHEL7 中使用它們。

答案1

在rackspace上,centos 6和7具有相同的

 md5sum /etc/udev/rules.d/z10-xen-vcpu-hotplug.rules

ACTION=="add", SUBSYSTEM=="cpu", RUN+="/bin/sh -c '[ ! -e. /sys$devpath/online ] || echo 1 > /sys$devpath/online'"

相關內容