From 4b51c1f82ab0ac1296c51cfb2214f65e2213def6 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sun, 18 Oct 2020 15:02:10 +0200 Subject: [PATCH] items/zfs_pool: use "parted -s" to avoid it prompting while changing stuff --- items/zfs_pool.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.