mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-22 20:11:06 +01:00
4b8175ee8f
copy the userland from one md(4)-mounted filesystem to a clean filesystem to prevent remnants of files that were added and removed from resulting in an unclean filesystem. When newfs(8) creates the first filesystem with journaled soft-updates enabled, the /.sujournal file in the new filesystem cannot be overwritten by the /.sujournal in the original filesystem. To avoid this particular error case, do not enable journaled soft-updates when creating the md(4)-backed filesystems, and instead use tunefs(8) to enable journaled soft-updates after the new filesystem is populated in vm_copy_base(). While here, fix a long standing bug where the build environment /boot files were used by mkimg(1) when creating the VM disk images by using the files in .OBJDIR. MFC after: 3 days Sponsored by: The FreeBSD Foundation |
||
---|---|---|
.. | ||
amd64 | ||
arm | ||
doc | ||
i386 | ||
pc98 | ||
picobsd | ||
pkg_repos | ||
powerpc | ||
scripts | ||
sparc64 | ||
tools | ||
Makefile | ||
Makefile.ec2 | ||
Makefile.vm | ||
rc.local | ||
release.conf.sample | ||
release.sh |