summaryrefslogtreecommitdiffstats
path: root/release/picobsd/build
diff options
context:
space:
mode:
authorluigi <luigi@FreeBSD.org>2015-01-24 08:48:05 +0000
committerluigi <luigi@FreeBSD.org>2015-01-24 08:48:05 +0000
commit70c9059ac63a17a0170e0407668bfd907bedf638 (patch)
treebbcd2e02e7928ab37f4bb1557682c88500441b87 /release/picobsd/build
parentca1fdb3c2cf128e07da63ee4336b805f60be6ee4 (diff)
downloadFreeBSD-src-70c9059ac63a17a0170e0407668bfd907bedf638.zip
FreeBSD-src-70c9059ac63a17a0170e0407668bfd907bedf638.tar.gz
do not strip /stand
This is a temporary workaround until the elftoolchain's version of strip is fixed: The previous (GNU) strip, when acting on a file with multiple links, would modify the one and only file in place (which means creating a new stripped copy, and then writing it back to the original). The new version from elftoolchain creates the new file and then unlinks the old one and renames the new. With multiple hard links, the original remains alive. In the /stand directory, this ends up creating 80+ copies of the same file.
Diffstat (limited to 'release/picobsd/build')
-rwxr-xr-xrelease/picobsd/build/picobsd6
1 files changed, 3 insertions, 3 deletions
diff --git a/release/picobsd/build/picobsd b/release/picobsd/build/picobsd
index 19a9839..728e9f4 100755
--- a/release/picobsd/build/picobsd
+++ b/release/picobsd/build/picobsd
@@ -734,8 +734,8 @@ populate_mfs_tree() {
[ -n "${copy_files}" ] && do_copyfiles ${dst} copy_files
do_copyfiles_user ${dst} || true
[ -n "${links}" ] && do_links ${dst} links
- strip ${dst}/libexec/* ${dst}/lib/* ${dst}/stand/* 2> /dev/null || true
-
+ strip ${dst}/libexec/* ${dst}/lib/* 2> /dev/null || true
+ # strip ${dst}/stand/* 2> /dev/null || true
# The 'import_files' mechanism is deprecated, as it requires
# root permissions to follow the symlinks, and also does
# not let you rename the entries.
@@ -756,7 +756,7 @@ populate_mfs_tree() {
# override the owner
echo "/set uid=0 gid=0" > mtree.out
mtree -ic -p ${dst} -k "" >> mtree.out
- log "mtre.out at ${BUILDDIR}/mtree.out"
+ log "mtree.out at ${BUILDDIR}/mtree.out size ${MFS_SIZE}k"
makefs -t ffs -o bsize=4096 -o fsize=512 \
-s ${MFS_SIZE}k -f 1000 -F mtree.out ${c_fs} ${dst}
ls -l ${c_fs} )
OpenPOWER on IntegriCloud