Update scaleway pass reset
This commit is contained in:
		
							parent
							
								
									cbffdef6b4
								
							
						
					
					
						commit
						45e0c48f4d
					
				
					 1 changed files with 11 additions and 10 deletions
				
			
		|  | @ -1,33 +1,34 @@ | |||
| .. post:: 2019.08.11 | ||||
| .. post:: 2019.09.11 | ||||
|    :tags: howto,scaleway,hosting,password | ||||
|    :category: hosting | ||||
|    :author: vladan | ||||
|    :location: Belgrade | ||||
| 
 | ||||
| =============================== | ||||
| Reset lost password on Scaleway | ||||
| =============================== | ||||
| ========================================== | ||||
| Reset root password on a scaleway instance | ||||
| ========================================== | ||||
| 
 | ||||
| `These are the supported boot options | ||||
| <https://github.com/scaleway/initrd/tree/master/Linux#boot-options>`_ on | ||||
| Scaleway, managed through instance tags. | ||||
| 
 | ||||
| The [serial] console doesn't work with Firefox, so install Chromium. | ||||
| The serial console doesn't work with Firefox, but works fine with Chromium. | ||||
| 
 | ||||
| .. important:: | ||||
| 
 | ||||
|     Use bootscript for this, not local boot. | ||||
|     Use boot script for this, not local boot. | ||||
| 
 | ||||
| Instances -> Select Your Instance -> Advanced Settings. | ||||
| Navigate to Instances -> [Your Instance] -> Advanced Settings. | ||||
| 
 | ||||
| Make sure only ``INITRD_POST_SHELL=1`` is present in tags. | ||||
| 
 | ||||
| Reboot instance. You'll get a shell with the volume mounted in ``/newroot``. | ||||
| Reboot the instance. You'll get a shell with the rootfs volume of the VM you're | ||||
| restoring the password mounted in ``/newroot``, e.g: | ||||
| 
 | ||||
| .. code-block:: bash | ||||
| 
 | ||||
|    chroot /newroot | ||||
|    passwd root | ||||
| 
 | ||||
| Exit the chroot shell and the post initrd shell, the boot should continue to | ||||
| the VM. | ||||
| Exit the chroot shell and the post initrd shell, the boot process will | ||||
| continue, loading the updated rootfs. | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue