2010-03-29 | Paul Boddie | raw annotate files changeset graph | Added --root options to the setup and enter scripts, invoking the underlying tools without fakechroot. |
1 #!/bin/bash 2 # Usage: user-enter 3 4 # Configuration: 5 if [ -e userinstall-defaults ]; then 6 source userinstall-defaults 7 elif [ -e /etc/default/userinstall ]; then 8 source /etc/default/userinstall 9 else 10 echo "No defaults found for userinstall." 11 exit 1 12 fi 13 14 if [[ $1 == '--root' ]]; then 15 chroot $PACKAGEROOT 16 else 17 fakeroot fakechroot $FAKECHROOT_OPTIONS chroot $PACKAGEROOT 18 fi