Changeset 0928526 in mainline for uspace/app/init/init.c
- Timestamp:
- 2008-08-04T21:15:13Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 677f620
- Parents:
- 6e0e8c9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/init/init.c
r6e0e8c9 r0928526 52 52 } 53 53 54 static bool mount_ tmpfs(void)54 static bool mount_fs(const char *fstype) 55 55 { 56 56 int rc = -1; 57 57 58 58 while (rc < 0) { 59 rc = mount( "tmpfs", "/", "initrd");59 rc = mount(fstype, "/", "initrd"); 60 60 61 61 switch (rc) { … … 96 96 info_print(); 97 97 sleep(5); // FIXME 98 bool has_tmpfs = false; 99 bool has_fat = false; 98 100 99 if (! mount_tmpfs()) {101 if (!(has_tmpfs = mount_fs("tmpfs")) && !(has_fat = mount_fs("fat"))) { 100 102 printf(NAME ": Exiting\n"); 101 103 return -1; … … 110 112 version_print(); 111 113 112 spawn("/sbin/fat"); 114 /* 115 * Spawn file system servers that were not loaded as init tasks. 116 */ 117 if (!has_fat) 118 spawn("/sbin/fat"); 119 if (!has_tmpfs) 120 spawn("/sbin/tmpfs"); 121 113 122 spawn("/sbin/tetris"); 114 123 spawn("/sbin/cli");
Note:
See TracChangeset
for help on using the changeset viewer.