On 2021-06-18 10:55+0100 Wols Lists <antli...@youngman.org.uk> wrote:

> I've started tackling my new build again, and when it boots root is
> read-only. Hopefully I've just missed something stupid, but how to I
> get it to transition read-write?
> 
> System is grub, systemd, and root is an lv ...
> 
> Do I need to do anything special with the initrd? Manually remounting
> fixes it fine as far as I can tell.

Do you use a custom initrd? The kernel usually mounts / ro at first and
the initrd remounts it with `mount -o remount,rw /` later.
You can also mount / rw from the beginning by specifying “rw” instead of
“ro” on the kernel commandline¹. The current kernel commandline is
visible in /proc/cmdline.

Kind regards, tastytea

¹ <https://www.kernel.org/doc/html/v5.10/admin-guide/kernel-parameters.html>

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
<https://tastytea.de/tastytea.asc>.

Attachment: pgpViPptvdmV1.pgp
Description: Digitale Signatur von OpenPGP

Reply via email to