* reduced size for test partitions
This commit is contained in:
parent
b5374d1088
commit
085a0daa95
|
@ -95,7 +95,8 @@ def prepare_partition(blockdevice):
|
||||||
stdout = subprocess.PIPE,
|
stdout = subprocess.PIPE,
|
||||||
stderr = subprocess.PIPE,
|
stderr = subprocess.PIPE,
|
||||||
args = [ '/sbin/sfdisk', blockdevice ])
|
args = [ '/sbin/sfdisk', blockdevice ])
|
||||||
proc.stdin.write(",50,0xC\n,50,L\n")
|
# create two partitions (20MB fat, 20MB ext)
|
||||||
|
proc.stdin.write(",10,0xC\n,10,L\n")
|
||||||
(output, error) = proc.communicate()
|
(output, error) = proc.communicate()
|
||||||
if proc.returncode != 0:
|
if proc.returncode != 0:
|
||||||
raise Exception, "could not partition the device (%s): %s" \
|
raise Exception, "could not partition the device (%s): %s" \
|
||||||
|
|
Loading…
Reference in a new issue