Changeset 10835 in hybrid


Ignore:
Timestamp:
May 13, 2012, 3:08:25 PM (13 years ago)
Author:
rick
Message:

Make sure to umount in case of failure which normally uses exit 1 to terminate.

File:
1 edited

Legend:

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

    r10828 r10835  
    304304        # Make sure to enable /dev as easy_install requires it for example
    305305        mount -t devfs devfs ${NANO_WORLDDIR}/dev
    306         trap "umount ${NANO_WORLDDIR}/dev" 1 2 3 15
     306        trap "umount ${NANO_WORLDDIR}/dev" 0
     307        trap "exit 1" 1 2 3 15
    307308
    308309        # Copy packages into chroot
     
    350351        # Return normal trap behaviour
    351352        trap - 1 2 3 15
    352         umount ${NANO_WORLDDIR}/dev
    353353)
    354354
Note: See TracChangeset for help on using the changeset viewer.