def slotReboot(self): try: mount.umount(ctx.consts.target_dir + "/home") except: pass mount.umount(ctx.consts.target_dir) reboot.fastreboot()
def execute(self): ctx.screens.nextDisabled() ctx.screens.prevDisabled() self.info.show() self.info.setAlignment(QLabel.AlignCenter) # cmd = yali.sysutils.find_executable("reboot") # print cmd # os.system(cmd) try: mount.umount(ctx.consts.target_dir + "/home") except: pass mount.umount(ctx.consts.target_dir) reboot.fastreboot()
def execute(self): ctx.screens.disableNext() ctx.screens.disablePrev() self.info.show() self.info.setAlignment(QLabel.AlignCenter) # cmd = yali.sysutils.find_executable("reboot") # print cmd # os.system(cmd) try: #FIXME: this is a dirty and temporary workaround.. will be removed. os.chmod(ctx.consts.target_dir + "/var/tmp", 01777) mount.umount(ctx.consts.target_dir + "/home") except: pass mount.umount(ctx.consts.target_dir) reboot.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: mount.umount(ctx.consts.target_dir + "/home") except: pass mount.umount(ctx.consts.target_dir) reboot.fastreboot()
def slotReboot(self): reboot.fastreboot()