summaryrefslogtreecommitdiff
path: root/zfs.initcpio.hook
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2020-12-10 20:03:54 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2020-12-10 20:03:54 +0200
commit29b696550284d944393642efd78a30f64aaea6cf (patch)
treeaa18831c1179331a8eb7ba7637025463119ca2e9 /zfs.initcpio.hook
parentUpdate to 0.8.5 (diff)
downloadzfs-utils-29b696550284d944393642efd78a30f64aaea6cf.tar.xz
Update to 2.0.0
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"