From ff6542f59328ff1ea48b128526b2bcf473b123d7 Mon Sep 17 00:00:00 2001 From: Joseph Hall Date: Fri, 5 Feb 2016 11:48:17 -0700 Subject: [PATCH] Replace cfdisk with sfdisk --- salt/modules/qemu_nbd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/salt/modules/qemu_nbd.py b/salt/modules/qemu_nbd.py index c81b46585d..d3e64fbd91 100644 --- a/salt/modules/qemu_nbd.py +++ b/salt/modules/qemu_nbd.py @@ -47,8 +47,8 @@ def connect(image): '{0} does not exist'.format(image)) return '' - if salt.utils.which('cfdisk'): - fdisk = 'cfdisk -P t' + if salt.utils.which('sfdisk'): + fdisk = 'sfdisk -d' else: fdisk = 'fdisk -l' __salt__['cmd.run']('modprobe nbd max_part=63')