def fillFstab(self): # fill fstab fstab = yali.fstab.Fstab() for req in ctx.partrequests: req_type = req.requestType() if req_type == request.mountRequestType: p = req.partition() pt = req.partitionType() # Use default label for root partition (PARDUS_ROOT) # TODO: Trigger udev to get new label info. #### path = "LABEL=%s" % p.getTempLabel() fs = pt.filesystem._sysname or pt.filesystem._name mountpoint = pt.mountpoint # TODO: consider merging mountoptions in filesystem.py opts = ",".join([pt.filesystem.mountOptions(), pt.mountoptions]) e = yali.fstab.FstabEntry(path, mountpoint, fs, opts) fstab.insert(e) elif req_type == request.swapFileRequestType: path = "/" + ctx.consts.swap_file_name # Look bug #9233 mountpoint = "swap" fs = "swap" opts = "sw" e = yali.fstab.FstabEntry(path, mountpoint, fs, opts) fstab.insert(e) fstab.close()
def execute(self): # fill fstab fstab = yali.fstab.Fstab() for req in ctx.partrequests: if req.requestType() == request.mountRequestType: p = req.partition() pt = req.partitionType() path = p.getPath() fs = pt.filesystem.name() mountpoint = pt.mountpoint opts = pt.mountoptions e = yali.fstab.FstabEntry(path, mountpoint, fs, opts) fstab.insert(e) fstab.close() # run postinstall yali.postinstall.run_all() # stop slide show self.timer.stop()
def execute(self): # fill fstab fstab = yali.fstab.Fstab() for req in ctx.partrequests: if req.requestType() == request.mountRequestType: p = req.partition() pt = req.partitionType() path = p.getPath() fs = pt.filesystem.name() mountpoint = pt.mountpoint opts = pt.mountoptions e = yali.fstab.FstabEntry(path, mountpoint, fs, opts) fstab.insert(e) fstab.close() # Configure Pending... yali.sysutils.chroot_comar() # run comar in chroot self.info.setText(_("Configuring packages for your system!")) # re-initialize pisi with comar this time. yali.pisiiface.initialize(ui=None, with_comar=True) yali.pisiiface.configure_pending() yali.pisiiface.finalize() # FIXME: move to sysutils os.system("chroot /mnt/target /usr/bin/update-environ.py") # stop slide show self.timer.stop()
def execute(self): # fill fstab fstab = yali.fstab.Fstab() for req in ctx.partrequests: req_type = req.requestType() if req_type == request.mountRequestType: p = req.partition() pt = req.partitionType() path = p.getPath() fs = pt.filesystem.name() mountpoint = pt.mountpoint opts = pt.mountoptions e = yali.fstab.FstabEntry(path, mountpoint, fs, opts) fstab.insert(e) elif req_type == request.swapFileRequestType: path = "/" + ctx.consts.swap_file_name mountpoint = "none" fs = "swap" opts = "sw" e = yali.fstab.FstabEntry(path, mountpoint, fs, opts) fstab.insert(e) fstab.close() # Configure Pending... yali.sysutils.chroot_comar() # run comar in chroot self.info.setText(_("Configuring packages for your system!")) # re-initialize pisi with comar this time. ui = PisiUI_NoThread(notify_widget = self) yali.pisiiface.initialize(ui=ui, with_comar=True) # show progress self.cur = 0 self.progress.setProgress(self.cur) self.total = yali.pisiiface.get_pending_len() self.progress.setTotalSteps(self.total) # run all pending... yali.pisiiface.configure_pending() yali.pisiiface.finalize() # FIXME: move to sysutils os.system("chroot /mnt/target /usr/bin/update-environ.py") # stop slide show self.timer.stop() # FIXME: I don't know if this is the right way to do # this. maybe postinstall can be used too. yali.localedata.write_locale_from_cmdline() # yali.localedata.write_font_from_cmdline(ctx.keydata) return True
def execute(self): # fill fstab fstab = yali.fstab.Fstab() for req in ctx.partrequests: req_type = req.requestType() if req_type == request.mountRequestType: p = req.partition() pt = req.partitionType() # path = p.getPath() path = "LABEL=%s" % pt.filesystem.getLabel(p) fs = p.getFSName() mountpoint = pt.mountpoint # TODO: consider merging mountoptions in filesystem.py opts = ",".join([pt.filesystem.mountOptions(), pt.mountoptions]) e = yali.fstab.FstabEntry(path, mountpoint, fs, opts) fstab.insert(e) elif req_type == request.swapFileRequestType: path = "/" + ctx.consts.swap_file_name mountpoint = "none" fs = "swap" opts = "sw" e = yali.fstab.FstabEntry(path, mountpoint, fs, opts) fstab.insert(e) fstab.close() # Configure Pending... # run baselayout's postinstall first yali.postinstall.initbaselayout() # postscripts depend on 03locale... yali.localeutils.write_locale_from_cmdline() yali.sysutils.chroot_comar() # run comar in chroot self.info.setText(_("Configuring packages for your system!")) # re-initialize pisi with comar this time. ui = PisiUI_NoThread(notify_widget = self) yali.pisiiface.initialize(ui=ui, with_comar=True) # show progress self.cur = 0 self.progress.setProgress(self.cur) self.total = yali.pisiiface.get_pending_len() self.progress.setTotalSteps(self.total) # run all pending... yali.pisiiface.configure_pending() # Remove cd repository and install add real yali.pisiiface.switch_to_pardus_repo() yali.pisiiface.finalize() # stop slide show self.timer.stop() return True