diff options
author | jkh <jkh@FreeBSD.org> | 1996-04-28 20:54:11 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1996-04-28 20:54:11 +0000 |
commit | 590017a61ca58be6918c7060127977c51861c36b (patch) | |
tree | 4feb68ad24dca3ea106d8e7eaa8949c9e16a1f31 /usr.sbin/sysinstall/disks.c | |
parent | c17cc2e1bedeb94384f0251f46ed703860b946d6 (diff) | |
download | FreeBSD-src-590017a61ca58be6918c7060127977c51861c36b.zip FreeBSD-src-590017a61ca58be6918c7060127977c51861c36b.tar.gz |
Add a new -fake argument to make sysinstall not actually change things while
I'm testing it.
Diffstat (limited to 'usr.sbin/sysinstall/disks.c')
-rw-r--r-- | usr.sbin/sysinstall/disks.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/sysinstall/disks.c b/usr.sbin/sysinstall/disks.c index 0c62dac..79f5881 100644 --- a/usr.sbin/sysinstall/disks.c +++ b/usr.sbin/sysinstall/disks.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: disks.c,v 1.43 1996/04/28 00:37:28 jkh Exp $ + * $Id: disks.c,v 1.44 1996/04/28 03:26:49 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -502,7 +502,7 @@ diskPartitionWrite(dialogMenuItem *self) Set_Boot_Blocks(d, boot1, boot2); msgNotify("Writing partition information to drive %s", d->name); - if (Write_Disk(d)) { + if (!Fake && Write_Disk(d)) { msgConfirm("ERROR: Unable to write data to disk %s!", d->name); return DITEM_FAILURE; } |