]> granicus.if.org Git - zfs/commit
Make vdev_id POSIX sh compatible
authorNed Bass <bass6@llnl.gov>
Wed, 19 Sep 2012 18:44:12 +0000 (11:44 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 27 Nov 2012 22:23:22 +0000 (14:23 -0800)
commita6ef9522eae9be2c2cb40731a8afb0a90f05d7ae
tree7be5f038a61fbda1087a85eccd2007ffc9bbdcdf
parentf74a147c022f79916e8525c2c16b1603f91202aa
Make vdev_id POSIX sh compatible

Full bash may not be available in all environments where udev helpers
run, such as in an initial ramdisk.  To avoid breakage in this case,
remove use of bash-specific features such as variable arrays and the
`declare' keyword from the vdev_id script.

Signed-off-by: Ned Bass <bass6@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #870
cmd/vdev_id/vdev_id