summaryrefslogtreecommitdiff
path: root/zfs.initcpio.hook
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2020-10-09 13:04:08 -0400
committerEli Schwartz <eschwartz@archlinux.org>2020-10-09 16:01:48 -0400
commit4d76893b86f73b4c1ff434c5c765d50b4b95087f (patch)
tree11410d646be422dcc56bcbfe652d889e8fa26d7c /zfs.initcpio.hook
parentzfs-utils*/: add explicit --enable-systemd (diff)
downloadzfs-utils-4d76893b86f73b4c1ff434c5c765d50b4b95087f.tar.xz
zfs initcpio hook: fix incorrect shell redirection
In order to fulfill the intended purpose, one must redirect to /dev/null before redirecting stderr. Otherwise stderr just goes to the console on stdout...
Diffstat (limited to 'zfs.initcpio.hook')
-rw-r--r--zfs.initcpio.hook2
1 files changed, 1 insertions, 1 deletions
diff --git a/zfs.initcpio.hook b/zfs.initcpio.hook
index 7288ab8..e0f4cfb 100644
--- a/zfs.initcpio.hook
+++ b/zfs.initcpio.hook
@@ -39,7 +39,7 @@ zfs_mount_handler () {
local pool="${ZFS_DATASET%%/*}"
local rwopt_exp="${rwopt:-ro}"
- if ! zpool list -H "${pool}" 2>&1 > /dev/null ; then
+ if ! zpool list -H "${pool}" >/dev/null 2>&1; then
if [ ! "${rwopt_exp}" = "rw" ]; then
msg "ZFS: Importing pool ${pool} readonly."
ZPOOL_IMPORT_FLAGS="${ZPOOL_IMPORT_FLAGS} -o readonly=on"