Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FAQ: added note explaining umount -R and /etc/dropbear #90

Merged
merged 2 commits into from
Jan 5, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions src/faqs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,12 @@ To make the root filesystem read-write:

mount -o remount,rw /

If you need to make a change to a folder that is mounted as an overlay, you can just unmount the overlay. For example:
If you need to make a change to a folder that is mounted as an overlay, you can just unmount the overlay (and remount the ssh host keys so you will be able to reconnect). For example:

.. code-block:: shell

umount -l /etc
umount -R /etc
mount -t bind /home/root/.dropbear /etc/dropbear

To see a full list of folders that have overlays you can run the following command:

Expand All @@ -170,7 +171,8 @@ If you don't want to reboot, you can set the filesystems back to their normal st
.. code-block:: shell

mount -o remount,ro /
umount /etc/dropbear
mount -o rw,relatime,lowerdir=/etc,upperdir=/var/volatile/etc,workdir=/var/volatile/.etc-work -t overlay overlay /etc
mount -o bind /home/root/.dropbear /etc/dropbear
mount -t bind /home/root/.dropbear /etc/dropbear

Note that you can get the value of the `-o` option in the second command by running the `mount | grep overlay` command noted above, *before* un-mounting anything.
Note that you can get the value of the ``-o`` option in the second ``mount`` command by running the ``mount | grep overlay`` command noted above, *before* un-mounting anything.
Loading