items/zfs_pool: use "parted -s" to avoid it prompting while changing stuff
This commit is contained in:
parent
a5088a5358
commit
4b51c1f82a
1 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue