aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/sysinstall/dist.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2002-11-05 22:56:44 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2002-11-05 22:56:44 +0000
commit364bf7afb273f4a0c14f08ff3c25991ff412367d (patch)
tree5b69cee70e2c04b0661cdbeb0241b60ac9e582ed /usr.sbin/sysinstall/dist.c
parent8bc90fb220d294957a19b827de876d4f851abb54 (diff)
downloadsrc-364bf7afb273f4a0c14f08ff3c25991ff412367d.tar.gz
src-364bf7afb273f4a0c14f08ff3c25991ff412367d.zip
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.
Notes
Notes: svn path=/head/; revision=106478
Diffstat (limited to 'usr.sbin/sysinstall/dist.c')
-rw-r--r--usr.sbin/sysinstall/dist.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/usr.sbin/sysinstall/dist.c b/usr.sbin/sysinstall/dist.c
index b950beb1b8a6..5fd52acb9fcb 100644
--- a/usr.sbin/sysinstall/dist.c
+++ b/usr.sbin/sysinstall/dist.c
@@ -38,6 +38,7 @@
#include <sys/param.h>
#include <sys/mount.h>
#include <sys/time.h>
+#include <sys/uio.h>
#include <signal.h>
#include <libutil.h>
@@ -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;
}
}