From cae9fe85dffeaad3fdd48cdc60fd6679210ed9e3 Mon Sep 17 00:00:00 2001 From: jhb Date: Wed, 27 Nov 2002 19:46:18 +0000 Subject: If the user choose to Undo everything in the label editor, only run the fdisk editor if WITH_SLICES. Before this on arch's that didn't support slices such as alpha and sparc64 you would drop into the fdisk editor after doing an Undo in the label editor. Approved by: re --- usr.sbin/sysinstall/label.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'usr.sbin/sysinstall') diff --git a/usr.sbin/sysinstall/label.c b/usr.sbin/sysinstall/label.c index ba2d655..7964545 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); -- cgit v1.1