X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=chboot;h=2a357e6d2f1dba5e01d92bdd8fa597a3958cbfd0;hb=708c79e5611549280b988c607e1a1a19fc63e991;hp=925becc55a95ffc3ddc2f3f1816643ef3474e50c;hpb=1a5548031efc4a1fa88ca94237eac3033cf97ef1;p=automated-distro-installer diff --git a/chboot b/chboot index 925becc..2a357e6 100755 --- a/chboot +++ b/chboot @@ -15,25 +15,44 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -# Set grub to boot into a different distro, and reboot unless -r -# $0 [DISTRO_NAME] -# with no argument, print available distros - -# DISTRO_NAME is based on the partition names in /boot. eg boot_debianjessie set -eE -o pipefail trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR [[ $EUID == 0 ]] || exec sudo "$BASH_SOURCE" "$@" +usage() { + cat <