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

Reindl Harald h.reindl at thelounge.net
Sun May 15 14:52:11 UTC 2016



Am 15.05.2016 um 16:48 schrieb fb.dev.gen:
> @Mikhail: thank you for your answer.
>
> @killermoehre: my special reason to not use `/etc/fstab` is that I'm
> testing Clear Linux <https://clearlinux.org/> which do not provides any
> `/etc/fstab` configuration file and uses extensively all systemd
> versatility.
>
> @all: any other suggestion about -.mount unit file regarding sections
> and options?

depending on your FS you don't need anything for mount-options, with 
ext4 you can set default mount-options with tune2fs and for the kernel 
"root=UUID=*******" in the boot config is enough

[root at honeypot:~]$ tune2fs -l /dev/sdb1
tune2fs 1.41.12 (17-May-2010)
Filesystem volume name:   honeypot
Last mounted on:          /var/lib/mysql
Filesystem UUID:          619eef2e-18aa-4f6b-a61a-347ee02989de
Filesystem magic number:  0xEF53
Filesystem revision #:    1 (dynamic)
Filesystem features:      has_journal ext_attr resize_inode dir_index 
filetype needs_recovery extent flex_bg sparse_super huge_file uninit_bg 
dir_nlink extra_isize
Filesystem flags:         signed_directory_hash
Default mount options:    journal_data_writeback nobarrier



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20160515/1a1327da/attachment.sig>


More information about the systemd-devel mailing list