Make sure /etc/fstab is written out for Apple-partitioned drives

reviewed by:	scottl
MFC after:	3 days
This commit is contained in:
Peter Grehan 2005-07-21 03:32:29 +00:00
parent a52daa5fd2
commit a0d592f606
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=148218
2 changed files with 8 additions and 0 deletions

View File

@ -207,7 +207,11 @@ configFstab(dialogMenuItem *self)
if (!disk->chunks)
msgFatal("No chunk list found for %s!", disk->name);
for (c1 = disk->chunks->part; c1; c1 = c1->next) {
#ifdef __powerpc__
if (c1->type == apple) {
#else
if (c1->type == freebsd) {
#endif
for (c2 = c1->part; c2; c2 = c2->next) {
if (c2->type == part && (c2->subtype == FS_SWAP || c2->private_data))
chunk_list[nchunks++] = c2;

View File

@ -207,7 +207,11 @@ configFstab(dialogMenuItem *self)
if (!disk->chunks)
msgFatal("No chunk list found for %s!", disk->name);
for (c1 = disk->chunks->part; c1; c1 = c1->next) {
#ifdef __powerpc__
if (c1->type == apple) {
#else
if (c1->type == freebsd) {
#endif
for (c2 = c1->part; c2; c2 = c2->next) {
if (c2->type == part && (c2->subtype == FS_SWAP || c2->private_data))
chunk_list[nchunks++] = c2;