X-Git-Url: https://iankelling.org/git/?p=automated-distro-installer;a=blobdiff_plain;f=chboot;h=426fd9a2cef87b83d8fbf22fc6fc146cd7223b38;hp=925becc55a95ffc3ddc2f3f1816643ef3474e50c;hb=bf19e9969f50a637c8fabf724eb9e292da472e01;hpb=46edfde8e1fbb4121d5d0661946fc419d042543d diff --git a/chboot b/chboot index 925becc..426fd9a 100755 --- a/chboot +++ b/chboot @@ -15,25 +15,41 @@ # 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 <