Skip to content

Commit

Permalink
Specify DB_FROM_SRC=yes when doing any installation target.
Browse files Browse the repository at this point in the history
We want to use the UIDs from the installed system, not the host
system, when installing things.

Sponsored by: Netflix
  • Loading branch information
bsdimp committed Aug 16, 2018
1 parent b2e0fc9 commit beac22c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/tools/nanobsd/defaults.sh
Expand Up @@ -388,7 +388,7 @@ install_world ( ) (
nano_make_install_env
set -o xtrace
cd "${NANO_SRC}"
${NANO_MAKE} installworld DESTDIR="${NANO_WORLDDIR}"
${NANO_MAKE} installworld DESTDIR="${NANO_WORLDDIR}" DB_FROM_SRC=yes
chflags -R noschg "${NANO_WORLDDIR}"
) > ${NANO_LOG}/_.iw 2>&1
)
Expand All @@ -401,7 +401,7 @@ install_etc ( ) (
nano_make_install_env
set -o xtrace
cd "${NANO_SRC}"
${NANO_MAKE} distribution DESTDIR="${NANO_WORLDDIR}"
${NANO_MAKE} distribution DESTDIR="${NANO_WORLDDIR}" DB_FROM_SRC=yes
# make.conf doesn't get created by default, but some ports need it
# so they can spam it.
cp /dev/null "${NANO_WORLDDIR}"/etc/make.conf
Expand All @@ -424,7 +424,7 @@ install_kernel ( ) (

set -o xtrace
cd "${NANO_SRC}"
${NANO_MAKE} installkernel DESTDIR="${NANO_WORLDDIR}"
${NANO_MAKE} installkernel DESTDIR="${NANO_WORLDDIR}" DB_FROM_SRC=yes

) > ${NANO_LOG}/_.ik 2>&1
)
Expand Down

0 comments on commit beac22c

Please sign in to comment.