From nobody@FreeBSD.org  Sun Apr 13 10:39:06 2014
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id CB05B2EF
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 13 Apr 2014 10:39:06 +0000 (UTC)
Received: from cgiserv.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client did not present a certificate)
	by mx1.freebsd.org (Postfix) with ESMTPS id B8503106E
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 13 Apr 2014 10:39:06 +0000 (UTC)
Received: from cgiserv.freebsd.org ([127.0.1.6])
	by cgiserv.freebsd.org (8.14.8/8.14.8) with ESMTP id s3DAd6tO076479
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 13 Apr 2014 10:39:06 GMT
	(envelope-from nobody@cgiserv.freebsd.org)
Received: (from nobody@localhost)
	by cgiserv.freebsd.org (8.14.8/8.14.8/Submit) id s3DAd6T2076470;
	Sun, 13 Apr 2014 10:39:06 GMT
	(envelope-from nobody)
Message-Id: <201404131039.s3DAd6T2076470@cgiserv.freebsd.org>
Date: Sun, 13 Apr 2014 10:39:06 GMT
From: Anselm Strauss <amsibamsi@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Improve installation on serial console
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         188549
>Category:       misc
>Synopsis:       Improve installation on serial console
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr 13 10:40:00 UTC 2014
>Closed-Date:    
>Last-Modified:  Mon May 05 03:09:28 UTC 2014
>Originator:     Anselm Strauss
>Release:        10.0-RELEASE-p1
>Organization:
>Environment:
FreeBSD heman 10.0-RELEASE-p1 FreeBSD 10.0-RELEASE-p1 #0: Tue Apr  8 06:45:06 UTC 2014     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
I have a PC Engines APU platform that has no video console but only a
serial one. Although there is a brief documentation in the handbook on
how to get the installation image working on the serial console
(https://www.freebsd.org/doc/handbook/install-advanced.html) a lot of
things are missing or troublesome to get a properly working system
manageable over the serial console only:

- Installation images have to be modified by hand to get serial console
  support
- Serial console is not enabled in the installed system, making it unusable
  for me
- Booting the installation image again and entering the rescue shell gives
  me no easy way to mount the installed system if it is on ZFS. Importing/
  exporting the pool is not very intuitive.
- Enabling SSHD during installation is an option. Later you can login over
  network and fix the serial console. But this relies on configuring a
  non-root user during installation and giving him the wheel group,
  otherwise you can not become root on the installed system over SSH.
>How-To-Repeat:
- Install fresh system on hardware with serial console support, put root
  on ZFS and enable SSHD
- Boot into the installed system, check serial console login
- Reboot to rescue shell, try configuring serial console
- Try logging in via SSHD, becoming root and configuring serial console
>Fix:
- Provide pre-built installation images with serial console support
- Provide option in installer to enable serial console on installed system
- Provide documentation on how to fix a system on ZFS with the rescue shell
- Provide option/documentation on how to configure user(s) to be able to
  fix installed system via SSH
>Release-Note:
>Audit-Trail:
>Unformatted:
