Warn if Finit fail to mount /proc and /sys
@@ -345,8 +345,10 @@ int main(int argc, char* argv[])
*/
chdir("/");
umask(0);
- mount("none", "/proc", "proc", 0, NULL);
- mount("none", "/sys", "sysfs", 0, NULL);
+ if (mount("none", "/proc", "proc", 0, NULL))
+ _pe("Failed mounting /proc");
+ if (mount("none", "/sys", "sysfs", 0, NULL))
+ _pe("Failed mounting /sysfs");
if (fisdir("/proc/bus/usb"))
mount("none", "/proc/bus/usb", "usbfs", 0, NULL);
