diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-11-15 18:26:37 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-11-15 18:26:37 +0100 |
commit | 8c4dd542afde23d21d736b24b5ab66c25ab091e8 (patch) | |
tree | 58e4044628e981d364a0fa940fd6055dd217a7ea /src/unit.c | |
parent | 99f08d14a7e4210bdb97b8c9d0752ec318ecca30 (diff) | |
download | systemd-8c4dd542afde23d21d736b24b5ab66c25ab091e8.tar.gz |
units: get rid of no_requires unit flag, and make crypto disks require cryptsetup service
Diffstat (limited to 'src/unit.c')
-rw-r--r-- | src/unit.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/unit.c b/src/unit.c index b3a8210a57..edc636412d 100644 --- a/src/unit.c +++ b/src/unit.c @@ -1456,15 +1456,6 @@ int unit_add_dependency(Unit *u, UnitDependency d, Unit *other, bool add_referen if (u == other) return 0; - if (UNIT_VTABLE(u)->no_requires && - (d == UNIT_REQUIRES || - d == UNIT_REQUIRES_OVERRIDABLE || - d == UNIT_REQUISITE || - d == UNIT_REQUISITE_OVERRIDABLE || - d == UNIT_BIND_TO)) { - return -EINVAL; - } - if ((r = set_ensure_allocated(&u->meta.dependencies[d], trivial_hash_func, trivial_compare_func)) < 0) return r; |