diff --git a/items/zfs_pool.py b/items/zfs_pool.py index bbc6707..e0d8a31 100644 --- a/items/zfs_pool.py +++ b/items/zfs_pool.py @@ -61,8 +61,8 @@ def prepare_blockdevice(node, device): # We create a new partition on a raw disk. That partition will # be used for ZFS. Yes, this is on purpose. No, creating a pool # on raw disks does not work properly on Linux. - node.run("parted {} mklabel gpt".format(quote(device))) - node.run("parted {} mkpart -a optimal primary 0% 100%".format(quote(device))) + node.run("parted -s {} mklabel gpt".format(quote(device))) + node.run("parted -s {} mkpart -a optimal primary 0% 100%".format(quote(device))) node.run("partprobe") # Simply append a "1" to get to the first partition.