summaryrefslogtreecommitdiff
path: root/mount.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-02-14 01:02:46 +0100
committerLennart Poettering <lennart@poettering.net>2010-02-14 01:02:46 +0100
commit2e478a46c3754ede1a7af57b961056a2a375a799 (patch)
treeced795692cd778911743b09a42bb88a090313de3 /mount.c
parent6be1e7d538e12f4e5c79c1271dba90e66726d8fd (diff)
mount,device: drop prefix from unit names to make them easily decodable
Diffstat (limited to 'mount.c')
-rw-r--r--mount.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mount.c b/mount.c
index 4d05081d11..b656ac2f74 100644
--- a/mount.c
+++ b/mount.c
@@ -125,7 +125,7 @@ static int mount_add_node_links(Mount *m) {
if (!path_startswith(m->what, "/dev/"))
return 0;
- if (!(e = unit_name_escape_path("node-", m->what+1, ".device")))
+ if (!(e = unit_name_escape_path(m->what+1, ".device")))
return -ENOMEM;
r = manager_load_unit(UNIT(m)->meta.manager, e, &device);
@@ -197,9 +197,9 @@ static int mount_add_one(Manager *m, const char *what, const char *where, bool l
return 0;
if (streq(where, "/"))
- e = strdup("rootfs.mount");
+ e = strdup("-.mount");
else
- e = unit_name_escape_path("fs-", where+1, ".mount");
+ e = unit_name_escape_path(where+1, ".mount");
if (!e)
return -ENOMEM;