Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 87d3ecf in mainline


Ignore:
Timestamp:
2009-06-14T14:29:42Z (13 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master
Children:
0ed2e0e
Parents:
c51a7cd
Message:

Display type of root filesystem and root device upon boot.

File:
1 edited

Legend:

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

    rc51a7cd r87d3ecf  
    5858        int rc = -1;
    5959        char *opts = "";
     60        const char *root_dev = "initrd";
    6061       
    6162        if (str_cmp(fstype, "tmpfs") == 0)
     
    6364
    6465        while (rc < 0) {
    65                 rc = mount(fstype, "/", "initrd", opts, IPC_FLAG_BLOCKING);
     66                rc = mount(fstype, "/", root_dev, opts, IPC_FLAG_BLOCKING);
    6667               
    6768                switch (rc) {
    6869                case EOK:
    69                         printf(NAME ": Root filesystem mounted\n");
     70                        printf(NAME ": Root filesystem mounted, %s at %s\n",
     71                            fstype, root_dev);
    7072                        break;
    7173                case EBUSY:
Note: See TracChangeset for help on using the changeset viewer.