Changeset 10762 in hybrid for branches/releng-9.0/nanobsd


Ignore:
Timestamp:
May 9, 2012, 11:08:05 PM (13 years ago)
Author:
rick
Message:

Use dev during package install, for jinja2 (easy_install) needs it.

fixes nodefactory:ticket:144

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/releng-9.0/nanobsd/cfg/nanobsd.wleiden

    r10723 r10762  
    295295# to source /etc/profile in chroot to get PKG_* included, for alternate installs
    296296cust_pkg () (
    297 
    298297        # If the package directory doesn't exist, we're done.
    299298        if [ ! -d ${NANO_PACKAGE_DIR} ]; then
     
    301300                return 0
    302301        fi
     302
     303        # Make sure to enable /dev as easy_install requires it for example
     304        mount -t devfs devfs ${NANO_WORLDDIR}/dev
     305        trap "umount ${NANO_WORLDDIR}/dev" 1 2 3 15
    303306
    304307        # Copy packages into chroot
     
    343346        done
    344347        rm -rf ${NANO_WORLDDIR}/Pkg
     348
     349        # Return normal trap behaviour
     350        trap - 1 2 3 15
     351        umount ${NANO_WORLDDIR}/dev
    345352)
    346353
Note: See TracChangeset for help on using the changeset viewer.