summaryrefslogtreecommitdiffstats
path: root/sbin/sysinstall
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/sysinstall')
-rw-r--r--sbin/sysinstall/stage2.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/sbin/sysinstall/stage2.c b/sbin/sysinstall/stage2.c
index b801c29..1735f29 100644
--- a/sbin/sysinstall/stage2.c
+++ b/sbin/sysinstall/stage2.c
@@ -6,7 +6,7 @@
* this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
* ----------------------------------------------------------------------------
*
- * $Id: stage2.c,v 1.21 1995/01/14 10:31:21 jkh Exp $
+ * $Id: stage2.c,v 1.22 1995/01/30 03:19:54 phk Exp $
*
*/
@@ -72,14 +72,18 @@ stage2()
}
for (j = 1; Fsize[j]; j++) {
- if (strcmp(Ftype[Fsize[j]], "ufs"))
+ if (!strcmp(Ftype[Fsize[j]], "swap"))
continue;
strcpy(dbuf, "/mnt");
p = Fname[Fsize[j]];
q = Fmount[Fsize[j]];
if (strcmp(q, "/"))
strcat(dbuf, q);
- MountUfs(p, dbuf, 1, 0);
+ if (!strcmp(Ftype[Fsize[j]], "ufs")) {
+ MountUfs(p, dbuf, 1, 0);
+ continue;
+ }
+ Mkdir(dbuf);
}
Mkdir("/mnt/etc", TRUE);
OpenPOWER on IntegriCloud