summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuta SATOH <nigoro.dev@gmail.com>2016-02-10 21:17:58 +0900
committerYuta SATOH <nigoro.dev@gmail.com>2016-02-10 21:17:58 +0900
commit6d347154bef32dedbb1be53b41f45e7f8a172416 (patch)
tree97ce498ac1afbed7ceb0445480c227575d255e3a /scripts
parentscripts/automatic_updater.sh: Drop -u option. (diff)
downloadgentoo-bsd-6d347154bef32dedbb1be53b41f45e7f8a172416.tar.gz
gentoo-bsd-6d347154bef32dedbb1be53b41f45e7f8a172416.tar.bz2
gentoo-bsd-6d347154bef32dedbb1be53b41f45e7f8a172416.zip
create_forcestage3.sh: Fixed an issue that can not mount DISTDIR.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/mkstages/create_forcestage3.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/mkstages/create_forcestage3.sh b/scripts/mkstages/create_forcestage3.sh
index e0aff8c..516f95b 100644
--- a/scripts/mkstages/create_forcestage3.sh
+++ b/scripts/mkstages/create_forcestage3.sh
@@ -42,7 +42,10 @@ prepare(){
mount -t nullfs "${PORTDIR}" "${WORKDIR}"/usr/portage
if [[ ! "${distdir}" =~ ${PORTDIR}.* ]]; then
echo "mount DISTDIR"
- mount -t nullfs "${WORKDIR}"/usr/portage/distfiles
+ if [[ ! -e "${WORKDIR}"/usr/portage/distfiles ]]; then
+ mkdir "${WORKDIR}"/usr/portage/distfiles
+ fi
+ mount -t nullfs "${distdir}" "${WORKDIR}"/usr/portage/distfiles
fi
if [[ "${TMPFS}" -ne 0 ]] ; then
echo "mount TMPFS"