summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2013-07-17 11:27:32 +0200
committerHarald Hoyer <harald@redhat.com>2013-07-17 11:33:07 +0200
commitc72aadd1851096ea979f68b4e32cca71746ccdc4 (patch)
tree6c67d6c8b9f52e4c32ff7a2ce526201686f81b69
parent956eaf2b8d6c9999024705ddadc7393bc707de02 (diff)
remove RD_TIMESTAMP import
If you want timing information from the initramfs, use systemd in the initramfs.
-rw-r--r--src/core/main.c25
1 files changed, 0 insertions, 25 deletions
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");