diff options
author | Eli Schwartz | 2020-10-09 13:04:08 -0400 |
---|---|---|
committer | Eli Schwartz | 2020-10-09 16:01:48 -0400 |
commit | 4d76893b86f73b4c1ff434c5c765d50b4b95087f (patch) | |
tree | 11410d646be422dcc56bcbfe652d889e8fa26d7c /zfs.initcpio.hook | |
parent | bc6da8e5b9cced0ba218c367759012f7cc460e09 (diff) | |
download | aur-4d76893b86f73b4c1ff434c5c765d50b4b95087f.tar.gz |
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.hook | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zfs.initcpio.hook b/zfs.initcpio.hook index 7288ab8018b3..e0f4cfb386ca 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" |