From: Niclas Berglind Date: Wed, 15 Oct 2014 19:11:46 +0000 (+0200) Subject: Fix parted command to run in scripted mode. X-Git-Url: http://git.datanom.net/omvzfs.git/commitdiff_plain/7fe0f27c9220a59a81b9393afe8d90d167f31e6b Fix parted command to run in scripted mode. Signed-off-by: Niclas Berglind --- 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); }