示例#1
0
 def get_domain0_bootlabel(self):
     """ Get the domain0 bootlabel from the default boot title """
     title = ""
     def_title = bootloader.get_default_title()
     line = bootloader.get_kernel_val(def_title, "ssidref")
     if line:
         parms = line.split(":", 1)
         if len(parms) > 1:
             title = parms[1]
     return title
 def get_domain0_bootlabel(self):
     """ Get the domain0 bootlabel from the default boot title """
     title = ""
     def_title = bootloader.get_default_title()
     line = bootloader.get_kernel_val(def_title, "ssidref")
     if line:
         parms = line.split(":",1)
         if len(parms) > 1:
             title = parms[1]
     return title
示例#3
0
 def rm_bootpolicy(self):
     """ Remove any (ACM) boot policy from the grub configuration file
     """
     rc = 0
     title = bootloader.get_default_title()
     if title != None:
         polnames = []
         for (k, v) in self.xsobjs.items():
             polnames.append(v.get_filename(".bin", "", dotted=True))
         bootloader.rm_policy_from_boottitle(title, polnames)
     else:
         rc = -xsconstants.XSERR_NO_DEFAULT_BOOT_TITLE
     return rc
 def rm_bootpolicy(self):
     """ Remove any (ACM) boot policy from the grub configuration file
     """
     rc = 0
     title = bootloader.get_default_title()
     if title != None:
         polnames = []
         for (k, v) in self.xsobjs.items():
             polnames.append(v.get_filename(".bin","",dotted=True))
         bootloader.rm_policy_from_boottitle(title, polnames)
     else:
         rc = -xsconstants.XSERR_NO_DEFAULT_BOOT_TITLE
     return rc
示例#5
0
 def rm_domain0_bootlabel(self):
     """ Remove the domain-0 bootlabel from the default boot title """
     def_title = bootloader.get_default_title()
     return bootloader.set_kernel_attval(def_title, "ssidref", None)
 def rm_domain0_bootlabel(self):
     """ Remove the domain-0 bootlabel from the default boot title """
     def_title = bootloader.get_default_title()
     return bootloader.set_kernel_attval(def_title, "ssidref", None)