Fix awk usage
[zfs.git] / cmd / zpool_layout / zpool_layout
index 432c157..26d3ec2 100755 (executable)
@@ -12,7 +12,7 @@
 # /etc/zfs/zdev.conf file, it allows the by-path naming convertion
 # to change and still keep the simple <channel><rank> naming.
 #
-AWK=${AWK:-/bin/awk}
+AWK=${AWK:-/usr/bin/awk}
 CONFIG=${CONFIG:-/etc/zfs/zdev.conf}
 BUSES=( 01 02 03 )
 PORTS=( 4 0 )
@@ -153,7 +153,7 @@ exec 1>&8 8>&-
 popd >/dev/null
 
 if [ ${TRIGGER} = "yes" ]; then
-       udevadm trigger
+       udevadm trigger --action=change --subsystem-match=block
        udevadm settle
 fi