1 #!/bin/bash 2 # Usage: user-setup [ <mirror> ] 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 == "--help" ]]; then 15 echo "Usage: user-setup [ <mirror> ]" 16 echo 17 echo "Examples:" 18 echo 19 echo "user-setup" 20 echo "user-setup file:///tmp/$USERINSTALL_CODENAME/" 21 echo "user-setup http://ftp.xx.debian.org/debian/" 22 exit 1 23 fi 24 25 fakeroot fakechroot $FAKECHROOT_OPTIONS debootstrap --variant=fakechroot --include=gnupg,$KEYRING $USERINSTALL_CODENAME $PACKAGEROOT $1 26 echo 27 echo "Don't forget to run the following before installing packages:" 28 echo 29 echo "user-apt-get update"