mirror of
https://aur.archlinux.org/zfs-utils.git
synced 2025-08-06 05:08:29 +02:00
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...
This commit is contained in:
@@ -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"
|
||||
|
Reference in New Issue
Block a user