From 7fe0f27c9220a59a81b9393afe8d90d167f31e6b Mon Sep 17 00:00:00 2001 From: Niclas Berglind Date: Wed, 15 Oct 2014 21:11:46 +0200 Subject: [PATCH] Fix parted command to run in scripted mode. Signed-off-by: Niclas Berglind --- src/Utils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Utils.php b/src/Utils.php index 4ccf60f..43a83b1 100644 --- a/src/Utils.php +++ b/src/Utils.php @@ -17,7 +17,7 @@ class OMVModuleZFSUtil { * */ public static function setGPTLabel($disk) { - $cmd = "parted " . $disk . " mklabel gpt 2>&1"; + $cmd = "parted -s " . $disk . " mklabel gpt 2>&1"; OMVModuleZFSUtil::exec($cmd,$out,$res); } -- 2.39.2