Source-Changes-HG archive

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

[src/trunk]: src/distrib/utils/sysinst/arch/cobalt Remove existing gzipped bo...



details:   https://anonhg.NetBSD.org/src/rev/456b7d468b93
branches:  trunk
changeset: 746908:456b7d468b93
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sun Aug 23 13:36:54 2009 +0000

description:
Remove existing gzipped bootloader before installing new one
for upgrade install.

diffstat:

 distrib/utils/sysinst/arch/cobalt/md.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r d9f6492b2bc6 -r 456b7d468b93 distrib/utils/sysinst/arch/cobalt/md.c
--- a/distrib/utils/sysinst/arch/cobalt/md.c    Sun Aug 23 12:31:05 2009 +0000
+++ b/distrib/utils/sysinst/arch/cobalt/md.c    Sun Aug 23 13:36:54 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: md.c,v 1.3 2009/05/16 10:40:16 nonaka Exp $    */
+/*     $NetBSD: md.c,v 1.4 2009/08/23 13:36:54 tsutsui Exp $   */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -112,6 +112,7 @@
                    target_expand(PART_BOOT_EXT2FS_PI_MOUNT));
                run_program(0, "/bin/mkdir -p %s", bootdir);
                run_program(0, "/bin/cp /usr/mdec/boot %s", bootdir); 
+               run_program(0, "/bin/rm -f %s/%s", bootdir, bootfile); 
                run_program(0, "/usr/bin/gzip -9 %s/boot", bootdir);
                for (i = 0; i < __arraycount(kernels); i++)
                        run_program(0, "/bin/ln -fs %s %s/%s",



Home | Main Index | Thread Index | Old Index