X-Git-Url: https://iankelling.org/git/?p=automated-distro-installer;a=blobdiff_plain;f=chboot;h=b90b9261187bd5ab6aaff97110a88cb819ad822e;hp=925becc55a95ffc3ddc2f3f1816643ef3474e50c;hb=114c4b67d43d7fa1cd7b5014153b82aa8492c74d;hpb=1a5548031efc4a1fa88ca94237eac3033cf97ef1 diff --git a/chboot b/chboot index 925becc..b90b926 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 <