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

reviewed by:	scottl
MFC after:	3 days
This commit is contained in:
grehan 2005-07-21 03:32:29 +00:00
parent 25ae65f652
commit 9d96f3d784
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;