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
|
:tags: howto,scaleway,hosting,password
|
||||||
:category: hosting
|
:category: hosting
|
||||||
:author: vladan
|
:author: vladan
|
||||||
:location: Belgrade
|
:location: Belgrade
|
||||||
|
|
||||||
===============================
|
==========================================
|
||||||
Reset lost password on Scaleway
|
Reset root password on a scaleway instance
|
||||||
===============================
|
==========================================
|
||||||
|
|
||||||
`These are the supported boot options
|
`These are the supported boot options
|
||||||
<https://github.com/scaleway/initrd/tree/master/Linux#boot-options>`_ on
|
<https://github.com/scaleway/initrd/tree/master/Linux#boot-options>`_ on
|
||||||
Scaleway, managed through instance tags.
|
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::
|
.. 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.
|
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
|
.. code-block:: bash
|
||||||
|
|
||||||
chroot /newroot
|
chroot /newroot
|
||||||
passwd root
|
passwd root
|
||||||
|
|
||||||
Exit the chroot shell and the post initrd shell, the boot should continue to
|
Exit the chroot shell and the post initrd shell, the boot process will
|
||||||
the VM.
|
continue, loading the updated rootfs.
|
||||||
|
|
Loading…
Reference in a new issue