mirror of
https://github.com/troglobit/finit.git
synced 2026-10-01 21:42:40 +07:00
Only mount /proc if it isn't already mounted
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
+1
-1
@@ -350,7 +350,7 @@ int main(int argc, char *argv[])
|
||||
/*
|
||||
* Mount base file system
|
||||
*/
|
||||
if (mount("none", "/proc", "proc", 0, NULL))
|
||||
if (!fismnt("/proc") && mount("none", "/proc", "proc", 0, NULL))
|
||||
_pe("Failed mounting /proc");
|
||||
if (fisdir("/proc/bus/usb"))
|
||||
mount("none", "/proc/bus/usb", "usbfs", 0, NULL);
|
||||
|
||||
Reference in New Issue
Block a user