gpt-auto: fix ESP options and description
authorMarius Thesing <marius.thesing@gmail.com>
Tue, 8 Sep 2015 19:25:05 +0000 (21:25 +0200)
committerMarius Thesing <marius.thesing@gmail.com>
Tue, 8 Sep 2015 19:30:34 +0000 (21:30 +0200)
Since 59512f21 the parameters were passed in the wrong order, causing the
options to be interpreted as the description.

Also, while "false" was supposed to be passed for "rw", the ESP should actually
be mounted read-write. It just happened to be "true" since the description char*
was passed for "rw".

src/gpt-auto-generator/gpt-auto-generator.c

index c97be2d..bb82179 100644 (file)
@@ -526,9 +526,9 @@ static int add_boot(const char *what) {
                        what,
                        "/boot",
                        "vfat",
-                       "EFI System Partition Automount",
-                       false,
+                       true,
                        "umask=0077",
+                       "EFI System Partition Automount",
                        120 * USEC_PER_SEC);
 
         return r;