Esempio n. 1
0
 def __init__(self, config):
     Extension.__init__(self, config)
     self.fn = "{path}/{dir}/{file}".format(
         path=self.config["boot/path"],
         dir=self.config["grub-legacy/dir"],
         file=self.config["grub-legacy/file"])
     self.bootitems = []
Esempio n. 2
0
	def __init__(self, config, testing = False):
		Extension.__init__(self,config)
		self.grubpath =  "{path}/{dir}".format(path = self.config["boot/path"], dir = self.config["syslinux/dir"])
		self.fn = "{path}/{file}".format(path = self.grubpath, file = self.config["syslinux/file"])
		self.bootitems = []
		self.testing = testing
		self.defpos = 0
		self.defname = "undefined"
Esempio n. 3
0
	def __init__(self, config, testing = False):
		Extension.__init__(self,config)
		self.grubpath =  "{path}/{dir}".format(path = self.config["boot/path"], dir = self.config["grub/dir"])
		self.fn = "{path}/{file}".format(path = self.grubpath, file = self.config["grub/file"])
		self.bootitems = []
		self.testing = testing
		self.GuppyMap()
		self.defpos = 0
		self.defname = "undefined"
		if os.path.exists("/sys/firmware/efi"):
			self.uefiboot = True
		else:
			self.uefiboot = False
Esempio n. 4
0
	def __init__(self, config, testing=False):
		Extension.__init__(self, config)
		self.grubpath = "{path}/{dir}".format(path=self.config["boot/path"], dir=self.config["grub/dir"])
		self.fn = "{path}/{file}".format(path=self.grubpath, file=self.config["grub/file"])
		self.bootitems = []
		self.testing = testing
		self.GuppyMap()
		self.defpos = 0
		self.defname = "undefined"

		if os.path.exists("/sys/firmware/efi"):
			self.uefiboot = True
		else:
			self.uefiboot = False
Esempio n. 5
0
	def __init__(self,config):
		Extension.__init__(self,config)
		self.fn = "{path}/{dir}/{file}".format(path = self.config["boot/path"], dir = self.config["grub-legacy/dir"], file = self.config["grub-legacy/file"])
		self.bootitems = []
Esempio n. 6
0
	def __init__(self,config):
		Extension.__init__(self,config)
		self.fn = self.config["lilo/file"]
		self.lilo_cmd = self.config["lilo/bin"]
		self.bootitems = []