summaryrefslogtreecommitdiff
path: root/src/gpt-auto-generator/gpt-auto-generator.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-03-06 04:52:13 +0100
committerLennart Poettering <lennart@poettering.net>2014-03-06 05:04:51 +0100
commit1ebab691c7749779072741f71865bd0e055b7ecf (patch)
tree3859a0073da9beaa0980a80652fa4fce77094bdd /src/gpt-auto-generator/gpt-auto-generator.c
parent9533ad1f429ec037a155a5793d70ef49e69fbec2 (diff)
gpt-auto-generation: set a pretty description string
Diffstat (limited to 'src/gpt-auto-generator/gpt-auto-generator.c')
-rw-r--r--src/gpt-auto-generator/gpt-auto-generator.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gpt-auto-generator/gpt-auto-generator.c b/src/gpt-auto-generator/gpt-auto-generator.c
index 4f5224f3de..c4109f39b7 100644
--- a/src/gpt-auto-generator/gpt-auto-generator.c
+++ b/src/gpt-auto-generator/gpt-auto-generator.c
@@ -144,6 +144,8 @@ static int add_swap(const char *path, const char *fstype) {
fprintf(f,
"# Automatically generated by systemd-gpt-auto-generator\n\n"
+ "[Unit]\n"
+ "Description=Swap Partition\n\n"
"[Swap]\n"
"What=%s\n",
path);