zfs/contrib/dracut/90zfs
Brian Behlendorf 64025fa3a1
Silence 'make checkbashisms'
Commit d2bce6d03 added the 'make checkbashisms' target but did not
resolve all of the bashisms in the scripts.  This commit doesn't
resolve them all either but it does fix up a few, and it excludes
the others so 'make checkstyle' no longer prints warnings.  It's
a small step in the right direction.

* Dracut is Linux specific and itself depends on bash.  Therefore
  all dracut support scripts can be bash specific, update their
  shebang accordingly.

* zed-functions.sh, zfs-import, zfs-mount, zfs-zed, smart
  paxcheck.sh, make_gitrev.sh - these scripts were excuded from
  the check until they can be updated and properly tested.

* zfsunlock - only whole values for sleep are allowed.

* vdev_id - removed unneeded locals; use && instead of -a.

* dkms.mkconf, dkms.postbuil - use || instead of -o.

Reviewed-by: InsanePrawn <insane.prawny@gmail.com>
Reviewed-by:  Gabriel A. Devenyi <gdevenyi@gmail.com>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #10755
2020-08-20 13:45:47 -07:00
..
.gitignore Add bootfs.snapshot and bootfs.rollback kernel parameters 2020-05-29 21:16:08 -07:00
Makefile.am Centralize variable substitution 2020-07-14 17:33:44 -07:00
export-zfs.sh.in Silence 'make checkbashisms' 2020-08-20 13:45:47 -07:00
module-setup.sh.in Add bootfs.snapshot and bootfs.rollback kernel parameters 2020-05-29 21:16:08 -07:00
mount-zfs.sh.in Silence 'make checkbashisms' 2020-08-20 13:45:47 -07:00
parse-zfs.sh.in Silence 'make checkbashisms' 2020-08-20 13:45:47 -07:00
zfs-env-bootfs.service.in Move dracut specifics to dracut module 2019-04-02 17:14:39 -07:00
zfs-generator.sh.in bash scripts: use /usr/bin/env for bash shebangs 2020-02-10 13:13:46 -08:00
zfs-lib.sh.in Silence 'make checkbashisms' 2020-08-20 13:45:47 -07:00
zfs-load-key.sh.in Silence 'make checkbashisms' 2020-08-20 13:45:47 -07:00
zfs-needshutdown.sh.in Silence 'make checkbashisms' 2020-08-20 13:45:47 -07:00
zfs-rollback-bootfs.service.in Add bootfs.snapshot and bootfs.rollback kernel parameters 2020-05-29 21:16:08 -07:00
zfs-snapshot-bootfs.service.in Add bootfs.snapshot and bootfs.rollback kernel parameters 2020-05-29 21:16:08 -07:00