Module Name: src
Committed By: phx
Date: Thu Feb 2 21:58:31 UTC 2012
Modified Files:
src/distrib/utils/sysinst/arch/ofppc: md.c
Log Message:
Use sync(8) instead of echo(1) to avoid writing an RDB disklabel.
echo(1) is not part of the miniroot file system.
To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/distrib/utils/sysinst/arch/ofppc/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/ofppc/md.c
diff -u src/distrib/utils/sysinst/arch/ofppc/md.c:1.11 src/distrib/utils/sysinst/arch/ofppc/md.c:1.12
--- src/distrib/utils/sysinst/arch/ofppc/md.c:1.11 Sun Jan 29 16:01:36 2012
+++ src/distrib/utils/sysinst/arch/ofppc/md.c Thu Feb 2 21:58:31 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: md.c,v 1.11 2012/01/29 16:01:36 phx Exp $ */
+/* $NetBSD: md.c,v 1.12 2012/02/02 21:58:31 phx Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -605,7 +605,7 @@ const char *md_disklabel_cmd(void)
/* we cannot rewrite an RDB disklabel */
if (rdb_found)
- return "echo No disklabel";
+ return "sync No disklabel";
return "disklabel -w -r";
}