When I'm installing over a serial line, I would expect to use that as my
console in the future.  This diff sets the default console to the one we
are currently using, so it's just another [enter]. (The style is based
on the xdm case immediately above)

OK?


Index: distrib/miniroot/install.sub
===================================================================
RCS file: /cvs/openbsd/src/distrib/miniroot/install.sub,v
retrieving revision 1.636
diff -u -p -r1.636 install.sub
--- distrib/miniroot/install.sub        22 Mar 2011 19:20:15 -0000      1.636
+++ distrib/miniroot/install.sub        5 Apr 2011 10:42:10 -0000
@@ -1895,9 +1895,11 @@ questions() {
                xdm=$resp
        fi
 
+       defcons=no
+       [[ -n $CONSOLE ]] && defcons=yes
        if [[ -n $CDEV ]]; then
                _d=${CPROM:-$CDEV}
-               ask_yn "Change the default console to $_d?"
+               ask_yn "Change the default console to $_d?" $defcons
                defcons=$resp
                if [[ $resp == y ]]; then
                        ask_which "speed" "should $_d use" \


-- 
You've been leading a dog's life.  Stay off the furniture.

Reply via email to