[molecules/arm-base] fixup remaster_post code, don't mess with /proc

This commit is contained in:
Fabio Erculiani
2012-01-31 21:25:05 +01:00
parent fc0aeb88d4
commit 755d5888d3
3 changed files with 18 additions and 2 deletions

View File

@@ -10,6 +10,9 @@ rm -rf "${CHROOT_PKGS_DIR}"/*
echo "Mounting bind to ${CHROOT_PKGS_DIR}"
mount --bind "${PKGS_DIR}" "${CHROOT_PKGS_DIR}" || exit 1
mount -t proc proc "${CHROOT_DIR}/proc"
content=$(ls -1 "${CHROOT_DIR}/proc" | wc -l)
if [ "${content}" -le 3 ]; then
mount -t proc proc "${CHROOT_DIR}/proc"
fi
exit 0