Exemple #1
0
 def run(self):
     mount_point = None
     if conf.get_resourcedisk_format():
         mount_point = self.activate_resource_disk()
     if mount_point is not None and \
             conf.get_resourcedisk_enable_swap():
         self.enable_swap(mount_point)
Exemple #2
0
 def run(self):
     mount_point = None
     if conf.get_resourcedisk_format():
         mount_point = self.activate_resource_disk()
     if mount_point is not None and \
             conf.get_resourcedisk_enable_swap():
         self.enable_swap(mount_point)