diff options
author | Damian Szuberski <[email protected]> | 2021-11-30 19:23:10 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-11-30 10:23:10 -0800 |
commit | 34eef3e9a7a74d24a59d016051d547afc55dbaa0 (patch) | |
tree | c75ff6fda4ee9582ed2ebb5b1a71a529242c3d78 /contrib/dracut/90zfs/parse-zfs.sh.in | |
parent | 4325de09cd2993837bc32a83d61872b57e58298e (diff) |
Pass `--enable=all` to shellcheck within contrib/
- Remove `SHELLCHECK_IGNORE` in favor of inline suppressions
and more general `SHELLCHECK_OPTS`.
- Exclude `SC2250` (turned on by `--enable=all`) globally
- Pass `--enable=all` to shellcheck for scripts in contrib/: it's
very important to catch errors early in areas that are not easily
testable.
Reviewed-by: George Melikov <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: szubersk <[email protected]>
Closes #12760
Diffstat (limited to 'contrib/dracut/90zfs/parse-zfs.sh.in')
-rwxr-xr-x | contrib/dracut/90zfs/parse-zfs.sh.in | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/contrib/dracut/90zfs/parse-zfs.sh.in b/contrib/dracut/90zfs/parse-zfs.sh.in index 0f92f5c80..724c5e2c6 100755 --- a/contrib/dracut/90zfs/parse-zfs.sh.in +++ b/contrib/dracut/90zfs/parse-zfs.sh.in @@ -49,11 +49,14 @@ case "${root}" in info "ZFS: Set ${root} as bootfs." ;; + + *) + info "ZFS: no ZFS-on-root" esac # Make sure Dracut is happy that we have a root and will wait for ZFS # modules to settle before mounting. -if [ ${wait_for_zfs} -eq 1 ]; then +if [ "${wait_for_zfs}" -eq 1 ]; then ln -s /dev/null /dev/root 2>/dev/null initqueuedir="${hookdir}/initqueue/finished" test -d "${initqueuedir}" || { |