summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/sade/install.c16
-rw-r--r--usr.sbin/sysinstall/install.c16
2 files changed, 28 insertions, 4 deletions
diff --git a/usr.sbin/sade/install.c b/usr.sbin/sade/install.c
index 8cfc955..3756905 100644
--- a/usr.sbin/sade/install.c
+++ b/usr.sbin/sade/install.c
@@ -41,6 +41,7 @@
#include <sys/ioctl.h>
#include <sys/fcntl.h>
#include <sys/wait.h>
+#include <sys/uio.h>
#include <sys/param.h>
#define MSDOSFS
#include <sys/mount.h>
@@ -1008,8 +1009,19 @@ installFilesystems(dialogMenuItem *self)
/* Mount devfs for other partitions to mount */
Mkdir("/mnt/dev");
- if (!Fake)
- mountfailed = mount("devfs", "/mnt/dev", 0, NULL);
+ if (!Fake) {
+ struct iovec iov[4];
+
+ iov[0].iov_base = "fstype";
+ iov[0].iov_len = strlen(iov[0].iov_base) + 1;
+ iov[1].iov_base = "devfs";
+ iov[1].iov_len = strlen(iov[1].iov_base) + 1;
+ iov[2].iov_base = "fspath";
+ iov[1].iov_len = strlen(iov[2].iov_base) + 1;
+ iov[3].iov_base = "/mnt/dev";
+ iov[1].iov_len = strlen(iov[3].iov_base) + 1;
+ mountfailed = nmount(iov, 4, 0);
+ }
if (mountfailed) {
dialog_clear_norefresh();
diff --git a/usr.sbin/sysinstall/install.c b/usr.sbin/sysinstall/install.c
index 8cfc955..3756905 100644
--- a/usr.sbin/sysinstall/install.c
+++ b/usr.sbin/sysinstall/install.c
@@ -41,6 +41,7 @@
#include <sys/ioctl.h>
#include <sys/fcntl.h>
#include <sys/wait.h>
+#include <sys/uio.h>
#include <sys/param.h>
#define MSDOSFS
#include <sys/mount.h>
@@ -1008,8 +1009,19 @@ installFilesystems(dialogMenuItem *self)
/* Mount devfs for other partitions to mount */
Mkdir("/mnt/dev");
- if (!Fake)
- mountfailed = mount("devfs", "/mnt/dev", 0, NULL);
+ if (!Fake) {
+ struct iovec iov[4];
+
+ iov[0].iov_base = "fstype";
+ iov[0].iov_len = strlen(iov[0].iov_base) + 1;
+ iov[1].iov_base = "devfs";
+ iov[1].iov_len = strlen(iov[1].iov_base) + 1;
+ iov[2].iov_base = "fspath";
+ iov[1].iov_len = strlen(iov[2].iov_base) + 1;
+ iov[3].iov_base = "/mnt/dev";
+ iov[1].iov_len = strlen(iov[3].iov_base) + 1;
+ mountfailed = nmount(iov, 4, 0);
+ }
if (mountfailed) {
dialog_clear_norefresh();
OpenPOWER on IntegriCloud