Exemplo n.º 1
0
    def onePartGptDisk(self):
        diskdfn = yaml.load("""\
  label: gpt
  partitions:
    1:
      size: 1024
      filesystem: ext3
      mount: /
""")
        d = disk(self.disksvol.create("onePartGptDisk"), "test", diskdfn)
Exemplo n.º 2
0
    def formatGptDisk(self):
        diskdfn = yaml.load("""\
  label: gpt
  partitions:
    1:
      size: 1024
      filesystem: ext3
      mount: /
    2:
      size: 512
      filesystem: ext4
      mount: /home
""")
        d = disk(self.disksvol.create("formatGptDisk"), "test", diskdfn)
        d.format()
Exemplo n.º 3
0
    def emptyGptDisk(self):
        diskdfn = yaml.load("""\
  label: gpt
  partitions:
""")
        d = disk(self.disksvol.create("emptyGptDisk"), "test", diskdfn)