From d22771fc003caeaa1c2796d31bb4ce7118baf305 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Thu, 24 Nov 2022 13:45:11 +0100 Subject: gpt-auto-generator: do not write "noauto" in unit options "auto"/"noauto" only make sense in the fstab. Putting them in Options= in the generated unit has no effect and is confusing. --- src/gpt-auto-generator/gpt-auto-generator.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/gpt-auto-generator') diff --git a/src/gpt-auto-generator/gpt-auto-generator.c b/src/gpt-auto-generator/gpt-auto-generator.c index 23a215231c..f2f6cc1a53 100644 --- a/src/gpt-auto-generator/gpt-auto-generator.c +++ b/src/gpt-auto-generator/gpt-auto-generator.c @@ -358,23 +358,19 @@ static int add_automount( _cleanup_free_ char *unit = NULL, *p = NULL; _cleanup_fclose_ FILE *f = NULL; - const char *opt = "noauto"; int r; assert(id); assert(where); assert(description); - if (options) - opt = strjoina(options, ",", opt); - r = add_mount(id, what, where, fstype, rw, growfs, - opt, + options, description, NULL); if (r < 0) -- cgit v1.2.1