Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/fdisk Don't output the 'Installed bootfile doesn't supp...



details:   https://anonhg.NetBSD.org/src/rev/f1f3a6c5bb92
branches:  trunk
changeset: 566415:f1f3a6c5bb92
user:      dsl <dsl%NetBSD.org@localhost>
date:      Sat May 08 20:52:59 2004 +0000

description:
Don't output the 'Installed bootfile doesn't support required options'
message when we are updating the mbr code because the user did fdisk -i ...

diffstat:

 sbin/fdisk/fdisk.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 51541ea016d1 -r f1f3a6c5bb92 sbin/fdisk/fdisk.c
--- a/sbin/fdisk/fdisk.c        Sat May 08 18:55:23 2004 +0000
+++ b/sbin/fdisk/fdisk.c        Sat May 08 20:52:59 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fdisk.c,v 1.77 2004/03/24 02:49:37 lukem Exp $ */
+/*     $NetBSD: fdisk.c,v 1.78 2004/05/08 20:52:59 dsl Exp $ */
 
 /*
  * Mach Operating System
@@ -35,7 +35,7 @@
 #include <sys/cdefs.h>
 
 #ifndef lint
-__RCSID("$NetBSD: fdisk.c,v 1.77 2004/03/24 02:49:37 lukem Exp $");
+__RCSID("$NetBSD: fdisk.c,v 1.78 2004/05/08 20:52:59 dsl Exp $");
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -1192,7 +1192,7 @@
                return;
        }
 
-       if (!f_flag && bootsize == 0)
+       if (!f_flag && bootsize == 0 && !i_flag)
                /* Output an explanation for the 'update bootcode' prompt. */
                printf("\n%s\n",
                    "Installed bootfile doesn't support required options.");



Home | Main Index | Thread Index | Old Index