mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-21 14:12:14 +07:00
mount: support less cumbersome x-systemd-xxx mount options
This commit is contained in:
parent
267632f0ab
commit
d4a7e06dea
@ -289,9 +289,13 @@ static int mount_add_target_links(Mount *m) {
|
||||
|
||||
noauto = !!mount_test_option(p->options, MNTOPT_NOAUTO);
|
||||
nofail = !!mount_test_option(p->options, "nofail");
|
||||
handle = !!mount_test_option(p->options, "comment=systemd.mount") ||
|
||||
handle =
|
||||
mount_test_option(p->options, "comment=systemd.mount") ||
|
||||
mount_test_option(p->options, "x-systemd-mount") ||
|
||||
m->meta.manager->mount_auto;
|
||||
automount = !!mount_test_option(p->options, "comment=systemd.automount");
|
||||
automount =
|
||||
mount_test_option(p->options, "comment=systemd.automount") ||
|
||||
mount_test_option(p->options, "x-systemd-automount");
|
||||
|
||||
if (mount_test_option(p->options, "_netdev") ||
|
||||
(p->fstype && fstype_is_network(p->fstype))) {
|
||||
|
Loading…
Reference in New Issue
Block a user