Module Name: src
Committed By: tsutsui
Date: Sun Aug 23 13:36:54 UTC 2009
Modified Files:
src/distrib/utils/sysinst/arch/cobalt: md.c
Log Message:
Remove existing gzipped bootloader before installing new one
for upgrade install.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/distrib/utils/sysinst/arch/cobalt/md.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/distrib/utils/sysinst/arch/cobalt/md.c
diff -u src/distrib/utils/sysinst/arch/cobalt/md.c:1.3 src/distrib/utils/sysinst/arch/cobalt/md.c:1.4
--- src/distrib/utils/sysinst/arch/cobalt/md.c:1.3 Sat May 16 10:40:16 2009
+++ src/distrib/utils/sysinst/arch/cobalt/md.c Sun Aug 23 13:36:54 2009
@@ -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",