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
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to