Skip to content

Commit

Permalink
New pkg needs devfs to be mounted when running in chroot
Browse files Browse the repository at this point in the history
  • Loading branch information
bapt committed Jun 5, 2019
1 parent 75dc18c commit 5c0ca1b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/share/poudriere/image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -411,10 +411,12 @@ if [ -n "${PACKAGELIST}" ]; then
FreeBSD: { enabled: false }
local: { url: file:///tmp/packages }
EOF
mount -t devfs devfs ${WRKDIR}/world/dev
convert_package_list "${PACKAGELIST}" | \
xargs chroot "${WRKDIR}/world" env \
REPOS_DIR=/tmp ASSUME_ALWAYS_YES=yes \
pkg install
umount ${WRKDIR}/world/dev
else
cat > "${WRKDIR}/world/tmp/repo.conf" <<-EOF
FreeBSD: { enabled: false }
Expand Down

0 comments on commit 5c0ca1b

Please sign in to comment.