summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1997-02-18 04:36:16 +0000
committerjkh <jkh@FreeBSD.org>1997-02-18 04:36:16 +0000
commite8b79bc7a1815ba4919755b2fd8344dd5d5a92e9 (patch)
tree2490f066ec02199204f9d089240bfad49fbe5cd8 /usr.sbin
parent23a89f2e840db933d767318235f96d07238d2fdf (diff)
downloadFreeBSD-src-e8b79bc7a1815ba4919755b2fd8344dd5d5a92e9.zip
FreeBSD-src-e8b79bc7a1815ba4919755b2fd8344dd5d5a92e9.tar.gz
Don't use /mnt in multi-user mode if we're installing a new filesystem.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/sade/misc.c4
-rw-r--r--usr.sbin/sysinstall/misc.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/sade/misc.c b/usr.sbin/sade/misc.c
index e7d4063..eb2c5c4 100644
--- a/usr.sbin/sade/misc.c
+++ b/usr.sbin/sade/misc.c
@@ -320,8 +320,8 @@ Mount(char *mountp, void *dev)
return DITEM_SUCCESS;
if (*((char *)dev) != '/') {
- sprintf(device, "/mnt/dev/%s", (char *)dev);
- sprintf(mountpoint, "/mnt%s", mountp);
+ sprintf(device, "%s/dev/%s", (char *)dev, RunningAsInit ? "/mnt" : "");
+ sprintf(mountpoint, "%s%s", RunningAsInit ? "/mnt" : "", mountp);
}
else {
strcpy(device, dev);
diff --git a/usr.sbin/sysinstall/misc.c b/usr.sbin/sysinstall/misc.c
index e7d4063..eb2c5c4 100644
--- a/usr.sbin/sysinstall/misc.c
+++ b/usr.sbin/sysinstall/misc.c
@@ -320,8 +320,8 @@ Mount(char *mountp, void *dev)
return DITEM_SUCCESS;
if (*((char *)dev) != '/') {
- sprintf(device, "/mnt/dev/%s", (char *)dev);
- sprintf(mountpoint, "/mnt%s", mountp);
+ sprintf(device, "%s/dev/%s", (char *)dev, RunningAsInit ? "/mnt" : "");
+ sprintf(mountpoint, "%s%s", RunningAsInit ? "/mnt" : "", mountp);
}
else {
strcpy(device, dev);
OpenPOWER on IntegriCloud