summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2003-12-16 17:58:24 +0000
committerscottl <scottl@FreeBSD.org>2003-12-16 17:58:24 +0000
commit68f2bd72ce4234e65c49314b3785df7e5e74e73a (patch)
tree0144b164d0e2af4a0344e8a360f76af44a9bd78b /usr.sbin
parente78731536befea09d42f6e0f6f219b4fa29613a1 (diff)
downloadFreeBSD-src-68f2bd72ce4234e65c49314b3785df7e5e74e73a.zip
FreeBSD-src-68f2bd72ce4234e65c49314b3785df7e5e74e73a.tar.gz
Once upon a time, DEVFS was optional, major numbers where static, and /dev
needed to be statically populated with device nodes. The first two are no longer true, which makes the third pretty moot. In fact, we don't seem to put device node bits into the distribution archives at all anymore. So..... remove the god-aweful nasty hack that force unmounted devfs during installation so that static device nodes could land in /dev. Now that the vnode cleaner handles this case better this isn't strictly needed, but axeing code in sysinstall is almost always benficial. Thanks to Don Lewis for pointing out this attribute of sysinstall.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/sysinstall/dist.c23
1 files changed, 1 insertions, 22 deletions
diff --git a/usr.sbin/sysinstall/dist.c b/usr.sbin/sysinstall/dist.c
index 6f5e31a..b28c3c6 100644
--- a/usr.sbin/sysinstall/dist.c
+++ b/usr.sbin/sysinstall/dist.c
@@ -521,7 +521,7 @@ distExtractTarball(char *path, char *dist, char *my_dir, int is_base)
{
char *buf = NULL, fname[PATH_MAX];
struct timeval start, stop;
- int i, j, status, total, intr, unmounted_dev;
+ int i, j, status, total, intr;
int cpid, zpid, fd2, chunk, numchunks;
properties dist_attr = NULL;
const char *tmp;
@@ -600,12 +600,6 @@ getinfo:
total = 0;
(void)gettimeofday(&start, (struct timezone *)NULL);
- if (is_base && RunningAsInit && !Fake) {
- unmounted_dev = 1;
- unmount("/dev", MNT_FORCE);
- } else
- unmounted_dev = 0;
-
/* We have one or more chunks, initialize unpackers... */
mediaExtractDistBegin(root_bias(my_dir), &fd2, &zpid, &cpid);
@@ -723,21 +717,6 @@ done:
else
(void)mediaExtractDistEnd(zpid, cpid);
- if (unmounted_dev) {
- 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;
- }
-
safe_free(buf);
return (status);
}
OpenPOWER on IntegriCloud