On Sun, May 15, 2016 at 3:28 PM, fb.dev.gen <[email protected]> wrote:
> 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)? > Asking the system to mount anything at / doesn't make much sense, because the fact that systemd is running and can read its unit files already means the rootfs is mounted... (There's always something mounted at /; if it's not the real rootfs, then it's the initramfs or something.) If you're just trying to *re*mount / with different options, that's not done via .mount units – it's done by systemd-remount-fs, which always parses the fstab. But in that case, why not specify the correct mount options in the first place? Putting "rootflags=discard,noatime" in the kernel command line should be enough. -- Mantas Mikulėnas <[email protected]>
_______________________________________________ systemd-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/systemd-devel
