Changeset 8e9b2534 in mainline for uspace/app/init/init.c


Ignore:
Timestamp:
2017-03-26T10:28:44Z (8 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f644472
Parents:
58898d1d
Message:

Set logger's VFS root

As an init task, logger starts with no VFS root, which effectively
disables logging to /log/*. In this commit we add a way to set logger's
root after the root is mounted in init to fix this. Note that some log
entries might be still missing as file-based logging kicks in quite
late.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/init/init.c

    r58898d1d r8e9b2534  
    5050#include <str_error.h>
    5151#include <config.h>
     52#include <io/logctl.h>
    5253#include "init.h"
    5354
     
    129130        int rc = mount(fstype, ROOT_MOUNT_POINT, ROOT_DEVICE, opts,
    130131            IPC_FLAG_BLOCKING, 0);
     132        if (rc == EOK)
     133                logctl_set_root();
    131134        return mount_report("Root filesystem", ROOT_MOUNT_POINT, fstype,
    132135            ROOT_DEVICE, rc);
Note: See TracChangeset for help on using the changeset viewer.