Am 15.05.2016 um 14:28 schrieb fb.dev.gen:
> 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

Hi Ben,

according to the systemd.mount man page, »In general, configuring mount
points through /etc/fstab is the preferred approach«. So /etc/fstab is
already the systemd way to do it.
Do you have any special reasons not to use /etc/fstab?

Regards
killermoehre


Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to