]> git.datanom.net - omvzfs.git/commitdiff
Fix parted command to run in scripted mode.
authorNiclas Berglind <nb@kjam.se>
Wed, 15 Oct 2014 19:11:46 +0000 (21:11 +0200)
committerMichael Rasmussen <mir@datanom.net>
Wed, 15 Oct 2014 19:58:52 +0000 (21:58 +0200)
Signed-off-by: Niclas Berglind <nb@kjam.se>
src/Utils.php

index 4ccf60f8f58b776dbcd48814d51ae7419040bb5f..43a83b1c86828e54329f27cd66be24c4d44ee881 100644 (file)
@@ -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);
        }
 
This page took 0.09537 seconds and 5 git commands to generate.