mirror of
				https://github.com/gutosie/neoboot.git
				synced 2025-10-31 19:35:48 +01:00 
			
		
		
		
	Update tools.py
This commit is contained in:
		| @@ -2131,7 +2131,7 @@ class DiskLabelSet(Screen): | |||||||
|     def __init__(self, session): |     def __init__(self, session): | ||||||
|         Screen.__init__(self, session) |         Screen.__init__(self, session) | ||||||
|         self['lab1'] = Label(_('Label')) |         self['lab1'] = Label(_('Label')) | ||||||
|         self['key_red'] = Label(_('Installation')) |         self['key_red'] = Label(_('Set Label')) | ||||||
|         self['actions'] = ActionMap(['WizardActions', 'ColorActions'], {'back': self.close, |         self['actions'] = ActionMap(['WizardActions', 'ColorActions'], {'back': self.close, | ||||||
|          'red': self.SetLabelDisk}) |          'red': self.SetLabelDisk}) | ||||||
|  |  | ||||||
| @@ -2187,11 +2187,11 @@ class DiskLabelSet(Screen): | |||||||
|                 f.close() |                 f.close() | ||||||
|                      |                      | ||||||
|             if flines.find('' + getMyUUID() + '') != -1: |             if flines.find('' + getMyUUID() + '') != -1: | ||||||
|                 cmd3 = "echo -e '\n%s '" % _('UUID exists or neoboot not installed yet\nAfter installing the plugin, give uuid') |                 cmd3 = "echo -e '\n%s '" % _('UUID exists or neoboot not installed yet\nAfter installing the plugin, give uuid\n\nReboot...') | ||||||
|             else:             |             else:             | ||||||
|                 os.system('echo UUID=' + getMyUUID() + '	    ' + locatin_neo + '	auto	defaults	0 0 >> /etc/fstab')  |                 os.system('echo UUID=' + getMyUUID() + '	    ' + locatin_neo + '	auto	defaults	0 0 >> /etc/fstab')  | ||||||
|                 cmd3 = "echo -e '\n%s '" % _('UUID set OK')                                   |                 cmd3 = "echo -e '\n%s '" % _('UUID set OK\n\nReboot...')                                   | ||||||
|             cmd4 = 'sleep 5; reboot -f'                                   |             cmd4 = 'sleep 10; reboot -f'                                   | ||||||
|             self.session.open(Console, _('Disk Label...!'), [cmd, cmd1, cmd2,cmd3, cmd4]) |             self.session.open(Console, _('Disk Label...!'), [cmd, cmd1, cmd2,cmd3, cmd4]) | ||||||
|            |            | ||||||
|            |            | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user