[systemd-devel] mounting the root file system using systemd unit file

fb.dev.gen fb.dev.gen at gmail.com
Sun May 15 12:28:30 UTC 2016


Hi all,

What should be the way to mount the root file system using systemd unit
file (i.e: without any `/etc/fstab` configuration file)?

Could it be right to do it like that:

```
# cat > /etc/systemd/system/root.mount << EOF
[Unit]
Description = Root file system mount point controlled and supervised by
systemd

[Mount]
What = /dev/root
Where = /
Type = ext4
Options = default,discard,noatime 0 0

[Install]
WantedBy = multi-user.target
EOF

```

...or is there a better "systemd way" to do it?


-- Ben


More information about the systemd-devel mailing list