[systemd-devel] Mounting / as writable without in `/etc/fstab`

Lennart Poettering lennart at poettering.net
Sat Dec 19 12:15:32 UTC 2020


On Mo, 23.11.20 16:23, Paul Menzel (pmenzel+systemd-devel at molgen.mpg.de) wrote:

> Dear systemd folks,
>
> Is an entry for / in `/etc/fstab` still needed, or is there a systemd way of
> doing it?

What Mantas said, really. In a legacy-free system where you#d like to
get rid of /etc/fstab i#d recommend:

1. in your initrd fsck the root fs first

2. then mount it in the initrd, and mount it writable right away

3. remove /etc/fstab

4. systemd-remount-fs will notice that the file is absent, and not do
   anything. (You could even mask the service if you like)

Lennart

--
Lennart Poettering, Berlin


More information about the systemd-devel mailing list