From dd96f3640d650295101d6d1b8da925eebcbff9df Mon Sep 17 00:00:00 2001 From: Turbo Fredriksson Date: Sun, 4 Oct 2015 14:20:40 +0200 Subject: [PATCH] Some minor fixes to the initramfs script (3/3). * Fixing return variable from a bunch of assist functions. Returned false when they should have returned true! Thanx to markdesouza @ GitHub for help findind this. Closes: #3869 Signed-off-by: Turbo Fredriksson --- contrib/shell-common/zfs-functions.in | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/contrib/shell-common/zfs-functions.in b/contrib/shell-common/zfs-functions.in index 8f204d348a9c..5ff7a0dec5b5 100644 --- a/contrib/shell-common/zfs-functions.in +++ b/contrib/shell-common/zfs-functions.in @@ -726,8 +726,6 @@ import_pool() else return 1 fi - else - return 1 fi fi @@ -811,8 +809,6 @@ mount_fs() else return 1 fi - else - return 1 fi return 0 @@ -854,8 +850,6 @@ decrypt_fs() else return 1 fi - else - return 1 fi done @@ -878,8 +872,6 @@ decrypt_fs() else return 1 fi - else - return 1 fi return 0 @@ -907,8 +899,6 @@ destroy_fs() else return 1 fi - else - return 1 fi return 0 @@ -949,8 +939,6 @@ clone_snap() else return 1 fi - else - return 1 fi return 0 @@ -976,8 +964,6 @@ rollback_snap() else return 1 fi - else - return 1 fi return 0