From c72aadd1851096ea979f68b4e32cca71746ccdc4 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Wed, 17 Jul 2013 11:27:32 +0200 Subject: remove RD_TIMESTAMP import If you want timing information from the initramfs, use systemd in the initramfs. --- src/core/main.c | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'src/core') diff --git a/src/core/main.c b/src/core/main.c index 749397578a..77cdcfe872 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -1145,25 +1145,6 @@ static int bump_rlimit_nofile(struct rlimit *saved_rlimit) { return 0; } -static struct dual_timestamp* parse_initrd_timestamp(struct dual_timestamp *t) { - const char *e; - unsigned long long a, b; - - assert(t); - - e = getenv("RD_TIMESTAMP"); - if (!e) - return NULL; - - if (sscanf(e, "%llu %llu", &a, &b) != 2) - return NULL; - - t->realtime = (usec_t) a; - t->monotonic = (usec_t) b; - - return t; -} - static void test_mtab(void) { char *p; @@ -1484,12 +1465,6 @@ int main(int argc, char *argv[]) { arg_running_as == SYSTEMD_SYSTEM); if (arg_running_as == SYSTEMD_SYSTEM) { - /* Parse the data passed to us. We leave this - * variables set, but the manager later on will not - * pass them on to our children. */ - if (!in_initrd()) - parse_initrd_timestamp(&initrd_timestamp); - /* Unset some environment variables passed in from the * kernel that don't really make sense for us. */ unsetenv("HOME"); -- cgit v1.2.3-54-g00ecf