arch use by-id and various fixes
[automated-distro-installer] / chboot
diff --git a/chboot b/chboot
index 9cb23d5574fd92dabbe980320df2dc549085eacd..0e3b506ebc7cdabe40c0cb3bd8d90eec41a93e3c 100755 (executable)
--- a/chboot
+++ b/chboot
@@ -1,4 +1,4 @@
-#!/bin/bash -x
+#!/bin/bash
 
 # Set grub to boot into a different distro, and reboot unless -r
 # $0 [DISTRO_NAME]
@@ -14,6 +14,7 @@ trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?"' ERR
 reboot=true
 while [[ $1 == -* ]]; do
     case $1 in
+        -d) set -x; shift ;;
         -r) reboot=false; shift ;;
         --) break ;;
     esac