def slotReboot(self): try: yalisys.umount(ctx.consts.target_dir + "/home") except: pass yalisys.umount(ctx.consts.target_dir) yalisys.fastreboot()
def execute(self): ctx.screens.disableNext() self.info.show() self.info.setAlignment(QLabel.AlignCenter) #FIXME: this is a dirty and temporary workaround.. will be removed. # os.chmod(ctx.consts.target_dir + "/var/tmp", 01777) # remove cd... w = RebootWidget(self) self.dialog = WarningDialog(w, self) self.dialog.exec_loop() try: yalisys.umount(ctx.consts.target_dir + "/home") except: pass yalisys.umount(ctx.consts.target_dir) yalisys.fastreboot()
def slotReboot(self): yalisys.fastreboot()