diff options
author | Marcel Moolenaar <marcel@FreeBSD.org> | 2004-01-30 05:21:32 +0000 |
---|---|---|
committer | Marcel Moolenaar <marcel@FreeBSD.org> | 2004-01-30 05:21:32 +0000 |
commit | 04b01085a5a5dfb7d7826b4ff726158ea464751f (patch) | |
tree | b8c283a40058b3aa7f877664c1f88f0b7f14eed3 /usr.sbin/sade | |
parent | 3a0bfa76fd485ea25351ac5b84533647f9857e47 (diff) | |
download | src-04b01085a5a5dfb7d7826b4ff726158ea464751f.tar.gz src-04b01085a5a5dfb7d7826b4ff726158ea464751f.zip |
In checkLabels(), deal with the fact that on ia64 we do not have a
disklabel.
Notes
Notes:
svn path=/head/; revision=125223
Diffstat (limited to 'usr.sbin/sade')
-rw-r--r-- | usr.sbin/sade/install.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/usr.sbin/sade/install.c b/usr.sbin/sade/install.c index f2c5318aba88..49f6ed4bc4aa 100644 --- a/usr.sbin/sade/install.c +++ b/usr.sbin/sade/install.c @@ -109,8 +109,12 @@ checkLabels(Boolean whinge, Chunk **rdev, Chunk **sdev, Chunk **udev, Chunk **vd if (!disk->chunks) msgFatal("No chunk list found for %s!", disk->name); for (c1 = disk->chunks->part; c1; c1 = c1->next) { +#ifndef __ia64__ if (c1->type == freebsd) { for (c2 = c1->part; c2; c2 = c2->next) { +#else + c2 = c1; +#endif if (c2->type == part && c2->subtype != FS_SWAP && c2->private_data) { if (!strcmp(((PartInfo *)c2->private_data)->mountpoint, "/")) { if (rootdev) { @@ -176,8 +180,10 @@ checkLabels(Boolean whinge, Chunk **rdev, Chunk **sdev, Chunk **udev, Chunk **vd } } } +#ifndef __ia64__ } } +#endif } } @@ -190,16 +196,22 @@ checkLabels(Boolean whinge, Chunk **rdev, Chunk **sdev, Chunk **udev, Chunk **vd if (!disk->chunks) msgFatal("No chunk list found for %s!", disk->name); for (c1 = disk->chunks->part; c1; c1 = c1->next) { +#ifndef __ia64__ if (c1->type == freebsd) { for (c2 = c1->part; c2; c2 = c2->next) { +#else + c2 = c1; +#endif if (c2->type == part && c2->subtype == FS_SWAP && !swapdev) { swapdev = c2; if (isDebug()) msgDebug("Found swapdev at %s!\n", swapdev->name); break; } +#ifndef __ia64__ } } +#endif } } |