+ one_partition = vars['ONE_PARTITION']=='1'
+
+ if (not one_partition):
+ try:
+ VSERVERS_PATH = "{}/vservers".format(SYSIMG_PATH)
+ utils.makedirs(VSERVERS_PATH)
+ log.write("mounting vservers partition in root file system\n")
+ if vars['virt'] == 'vs':
+ utils.sysexec("mount -t ext3 {} {}".format(PARTITIONS["vservers"], VSERVERS_PATH), log)
+ else:
+ utils.sysexec("mount -t btrfs {} {}".format(PARTITIONS["vservers"], VSERVERS_PATH), log)
+ except BootManagerException as e:
+ log.write("BootManagerException while mounting /vservers: {}\n".format(str(e)))
+ return -2
+
+ ROOT_MOUNTED = 1
+ vars['ROOT_MOUNTED'] = 1