From a6bb79953f7e076e2de299b995d3e07098d6c582 Mon Sep 17 00:00:00 2001 From: jhb Date: Tue, 5 Nov 2002 22:56:44 +0000 Subject: Mount devfs with nmount(2) instead of mount(2). This error was masked because errors from mount(2) were explicitly ignored. I didn't fix that bug. --- usr.sbin/sysinstall/dist.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'usr.sbin/sysinstall') diff --git a/usr.sbin/sysinstall/dist.c b/usr.sbin/sysinstall/dist.c index b950beb..5fd52ac 100644 --- a/usr.sbin/sysinstall/dist.c +++ b/usr.sbin/sysinstall/dist.c @@ -38,6 +38,7 @@ #include #include #include +#include #include #include @@ -822,7 +823,17 @@ distExtract(char *parent, Distribution *me) else continue; if (unmounted_dev) { - (void)mount("devfs", "/dev", 0, NULL); + struct iovec iov[4]; + + iov[0].iov_base = "fstype"; + iov[0].iov_len = sizeof("fstype"); + iov[1].iov_base = "devfs"; + iov[1].iov_len = sizeof("devfs"); + iov[2].iov_base = "fspath"; + iov[2].iov_len = sizeof("fstype"); + iov[3].iov_base = "/dev"; + iov[3].iov_len = sizeof("/dev"); + (void)nmount(iov, 4, 0); unmounted_dev = 0; } } -- cgit v1.1