diff options
author | grehan <grehan@FreeBSD.org> | 2005-07-21 03:32:29 +0000 |
---|---|---|
committer | grehan <grehan@FreeBSD.org> | 2005-07-21 03:32:29 +0000 |
commit | 9d96f3d7846c132c92f8bbf2fd7b78bb1c4ea6ae (patch) | |
tree | e2a57b61bdce78f6f7563ec70ea5ff107289cac0 | |
parent | 25ae65f652e74d694845962f48adddb8b14c25ed (diff) | |
download | FreeBSD-src-9d96f3d7846c132c92f8bbf2fd7b78bb1c4ea6ae.zip FreeBSD-src-9d96f3d7846c132c92f8bbf2fd7b78bb1c4ea6ae.tar.gz |
Make sure /etc/fstab is written out for Apple-partitioned drives
reviewed by: scottl
MFC after: 3 days
-rw-r--r-- | usr.sbin/sade/config.c | 4 | ||||
-rw-r--r-- | usr.sbin/sysinstall/config.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/usr.sbin/sade/config.c b/usr.sbin/sade/config.c index f86ce13..d41c4ea 100644 --- a/usr.sbin/sade/config.c +++ b/usr.sbin/sade/config.c @@ -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; diff --git a/usr.sbin/sysinstall/config.c b/usr.sbin/sysinstall/config.c index f86ce13..d41c4ea 100644 --- a/usr.sbin/sysinstall/config.c +++ b/usr.sbin/sysinstall/config.c @@ -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; |