diff options
author | jhb <jhb@FreeBSD.org> | 2002-05-31 13:38:17 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2002-05-31 13:38:17 +0000 |
commit | 5dfcc5315d8548e548f9ef4a7cfd59c7af13cdc8 (patch) | |
tree | 1ea771d298b3fa41fb23f78bcc69c7703b587dce /usr.sbin/sade/label.c | |
parent | 577d08fe7c0d0fcb36b7d123d00b44f8062d8936 (diff) | |
download | FreeBSD-src-5dfcc5315d8548e548f9ef4a7cfd59c7af13cdc8.zip FreeBSD-src-5dfcc5315d8548e548f9ef4a7cfd59c7af13cdc8.tar.gz |
Add a 'diskInteractive' variable that can be set to interactively partition
and label a disk from a sysinstall script.
Diffstat (limited to 'usr.sbin/sade/label.c')
-rw-r--r-- | usr.sbin/sade/label.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/sade/label.c b/usr.sbin/sade/label.c index b9752d56..af273e6 100644 --- a/usr.sbin/sade/label.c +++ b/usr.sbin/sade/label.c @@ -163,7 +163,8 @@ diskLabelEditor(dialogMenuItem *self) } else if (cnt) { /* Some are already selected */ - if (variable_get(VAR_NONINTERACTIVE)) + if (variable_get(VAR_NONINTERACTIVE) && + !variable_get(VAR_DISKINTERACTIVE)) i = diskLabelNonInteractive(NULL); else i = diskLabel(NULL); @@ -173,7 +174,8 @@ diskLabelEditor(dialogMenuItem *self) cnt = deviceCount(devs); if (cnt == 1) { devs[0]->enabled = TRUE; - if (variable_get(VAR_NONINTERACTIVE)) + if (variable_get(VAR_NONINTERACTIVE) && + !variable_get(VAR_DISKINTERACTIVE)) i = diskLabelNonInteractive(devs[0]); else i = diskLabel(devs[0]); |