diff options
author | Brian Behlendorf <[email protected]> | 2011-05-06 10:16:04 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2011-05-06 10:16:04 -0700 |
commit | 6ee44e32be259706aed9b1439b71971a165b198c (patch) | |
tree | b76da1c5dad00da12dcb5ce92dc285ba51611415 /cmd/zpool_layout | |
parent | 34b84cb831695b276788493048ea34f8af8d5bdf (diff) |
Fix awk usage
The zpool_id and zpool_layout helper scripts have been updated to
use the more common /usr/bin/awk symlink. On Fedora/Redhat systems
there are both /bin/awk and /usr/bin/awk symlinks to your installed
version of awk. On Debian/Ubuntu systems only the /usr/bin/awk
symlink exists.
Additionally, add the '\<' token to the beginning of the regex
pattern to prevent partial matches. This pattern only appears to
work with gawk despite the mawk man page claiming to support this
extended regex. Thus you will need to have gawk installed to use
these optional helper scripts. A comment has been added to the
script to reflect this reality.
Diffstat (limited to 'cmd/zpool_layout')
-rwxr-xr-x | cmd/zpool_layout/zpool_layout | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/zpool_layout/zpool_layout b/cmd/zpool_layout/zpool_layout index 7f19dc0e9..26d3ec265 100755 --- a/cmd/zpool_layout/zpool_layout +++ b/cmd/zpool_layout/zpool_layout @@ -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 ) |