diff options
-rw-r--r-- | scripts/mkstages/create_forcestage3.sh | 5 |
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" |