chiark / gitweb /
efi: set a nice description string in the ESP units
authorLennart Poettering <lennart@poettering.net>
Mon, 21 Jan 2013 00:27:32 +0000 (01:27 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 21 Jan 2013 00:27:32 +0000 (01:27 +0100)
src/efi-boot-generator/efi-boot-generator.c

index c7bf34a..1319c71 100644 (file)
@@ -77,6 +77,8 @@ int main(int argc, char *argv[]) {
 
         fprintf(f,
                 "# Automatially generated by systemd-efi-boot-generator\n\n"
+                "[Unit]\n"
+                "Description=EFI System Partition\n\n"
                 "[Mount]\n"
                 "Where=/boot\n"
                 "What=/dev/disk/by-partuuid/%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x\n"
@@ -97,10 +99,11 @@ int main(int argc, char *argv[]) {
                 return EXIT_FAILURE;
         }
 
-        fprintf(f,
-                "# Automatially generated by systemd-efi-boot-generator\n\n"
-                "[Automount]\n"
-                "Where=/boot\n");
+        fputs("# Automatially generated by systemd-efi-boot-generator\n\n"
+              "[Unit]\n"
+              "Description=EFI System Partition Automount\n\n"
+              "[Automount]\n"
+              "Where=/boot\n", f);
 
         free(name);
         name = strjoin(arg_dest, "/local-fs.target.wants/boot.automount", NULL);