summaryrefslogtreecommitdiff
path: root/src/efi-boot-generator
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-01-21 01:27:32 +0100
committerLennart Poettering <lennart@poettering.net>2013-01-21 01:27:32 +0100
commit4beaf24f416e33840a974c18c34b56084d2b978a (patch)
tree5cafc45fb52318fef2e9a4eeea5844fb04df75db /src/efi-boot-generator
parent1da350f18e871566eeab16585e5c18c6e440e30e (diff)
efi: set a nice description string in the ESP units
Diffstat (limited to 'src/efi-boot-generator')
-rw-r--r--src/efi-boot-generator/efi-boot-generator.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/efi-boot-generator/efi-boot-generator.c b/src/efi-boot-generator/efi-boot-generator.c
index c7bf34a53..1319c7120 100644
--- a/src/efi-boot-generator/efi-boot-generator.c
+++ b/src/efi-boot-generator/efi-boot-generator.c
@@ -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);