From dc5d63aa9709f542e3a9cb7846f7a99cf60af0f6 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Mon, 21 Apr 2008 10:29:29 +0000 Subject: Add RC_TMPDIR so that there's a writeable location during boot. --- src/librc/librc-depend.c | 1 + src/rc/rc-misc.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/librc/librc-depend.c b/src/librc/librc-depend.c index 0f21ce49..ac8245fd 100644 --- a/src/librc/librc-depend.c +++ b/src/librc/librc-depend.c @@ -655,6 +655,7 @@ static const char *const depdirs[] = RC_SVCDIR "/options", RC_SVCDIR "/exclusive", RC_SVCDIR "/scheduled", + RC_SVCDIR "/tmp", NULL }; diff --git a/src/rc/rc-misc.c b/src/rc/rc-misc.c index 85140aac..191fa3d4 100644 --- a/src/rc/rc-misc.c +++ b/src/rc/rc-misc.c @@ -224,6 +224,7 @@ void env_config(void) setenv("RC_LIBDIR", RC_LIBDIR, 1); setenv("RC_SVCDIR", RC_SVCDIR, 1); + setenv("RC_TMPDIR", RC_SVCDIR "/tmp", 1); setenv("RC_BOOTLEVEL", RC_LEVEL_BOOT, 1); e = rc_runlevel_get(); setenv("RC_RUNLEVEL", e, 1); -- cgit v1.2.3