diff --git a/usr.sbin/sade/label.c b/usr.sbin/sade/label.c index ba2d6552657d..7964545a50d8 100644 --- a/usr.sbin/sade/label.c +++ b/usr.sbin/sade/label.c @@ -1085,7 +1085,9 @@ diskLabel(Device *dev) else if ((d = Open_Disk(devs[i]->name)) != NULL) { Free_Disk(devs[i]->private); devs[i]->private = d; +#ifdef WITH_SLICES diskPartition(devs[i]); +#endif } } record_label_chunks(devs, dev); diff --git a/usr.sbin/sysinstall/label.c b/usr.sbin/sysinstall/label.c index ba2d6552657d..7964545a50d8 100644 --- a/usr.sbin/sysinstall/label.c +++ b/usr.sbin/sysinstall/label.c @@ -1085,7 +1085,9 @@ diskLabel(Device *dev) else if ((d = Open_Disk(devs[i]->name)) != NULL) { Free_Disk(devs[i]->private); devs[i]->private = d; +#ifdef WITH_SLICES diskPartition(devs[i]); +#endif } } record_label_chunks(devs, dev);