mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
Make dirs for msdos fs's.
This commit is contained in:
parent
a184b0e325
commit
86abb05569
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=6119
1 changed files with 7 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue