aboutsummaryrefslogtreecommitdiff
path: root/src/rc-depend.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-12-14 12:23:13 +0000
committerRoy Marples <roy@marples.name>2007-12-14 12:23:13 +0000
commitb73bd04cf3f19b47480c85dd58e63eef5900fa3c (patch)
treeafffd113e089a7f3db06e3ef696499ab0170140f /src/rc-depend.c
parentf8db842dd2e93c37a5287beefeb425ae98dcdb4a (diff)
If we need to regenrate the deptree in the boot runlevel, remove it afterwards as the dependencies may need programs brought up by localmount. The dependencies will be regenerated correctly in the next runlevel.
Diffstat (limited to 'src/rc-depend.c')
-rw-r--r--src/rc-depend.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/rc-depend.c b/src/rc-depend.c
index d3e319f7..de0125fc 100644
--- a/src/rc-depend.c
+++ b/src/rc-depend.c
@@ -48,10 +48,13 @@
#include "rc-misc.h"
#include "strlist.h"
-rc_depinfo_t *_rc_deptree_load (void) {
+rc_depinfo_t *_rc_deptree_load (int *regen) {
if (rc_deptree_update_needed ()) {
int retval;
+ if (regen)
+ *regen = 1;
+
ebegin ("Caching service dependencies");
retval = rc_deptree_update ();
eend (retval ? 0 : -1, "Failed to update the dependency tree");
@@ -129,7 +132,7 @@ int rc_depend (int argc, char **argv)
eerrorx ("Failed to update the dependency tree");
}
- if (! (deptree = _rc_deptree_load ()))
+ if (! (deptree = _rc_deptree_load (NULL)))
eerrorx ("failed to load deptree");
if (! runlevel)