sync filesystems just prior to writing the bootblocks to the raw device.

This commit is contained in:
pk 1995-09-18 22:36:19 +00:00
parent 974115eb54
commit 371dd67d56
1 changed files with 4 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: installboot.c,v 1.7 1995/09/16 23:20:32 pk Exp $ */
/* $NetBSD: installboot.c,v 1.8 1995/09/18 22:36:19 pk Exp $ */
/*
* Copyright (c) 1994 Paul Kranenburg
@ -144,6 +144,9 @@ main(argc, argv)
if (lseek(devfd, DEV_BSIZE, SEEK_SET) != DEV_BSIZE)
err(1, "lseek bootstrap");
/* Sync filesystems (to clean in-memory superblock?) */
sync();
if (write(devfd, protostore, protosize) != protosize)
err(1, "write bootstrap");
(void)close(devfd);