Bug 32144

Summary: [sysinstall] unattended install with sysinstall doesn't work when installing X
Product: Base System Reporter: John Ross <jhr>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description John Ross 2001-11-20 20:20:00 UTC
When using the install.cfg file with sysinstall, a menu pops up asking what XFree86 distributions you would like to install, even though those distributions are selected in install.cfg

Fix: 

My C could be off, but I'm thinking in dist.c, line 285, in distSetX(void) There are 2 return calls:

return distSetXF86(NULL);
return DITEM_SUCCESS;

distSetXF86 seems to just launch the the menu, I'm guessing that should be removed.
How-To-Repeat: use sysinstall with install.cfg, and select the distribution "distSetXDeveloper" (It also fails when "dists=xbin Xlib" or any thing with X
Comment 1 Murray Stokely freebsd_committer freebsd_triage 2001-12-10 10:53:56 UTC
Can you please post your complete install.cfg file?

What happens if you specify the distributions but then choose
"distSetCustom" instead of "distSetXDeveloper" ?

		- Murray
Comment 2 Murray Stokely freebsd_committer freebsd_triage 2001-12-10 10:54:34 UTC
State Changed
From-To: open->feedback

I'll look into this. 



Comment 3 Murray Stokely freebsd_committer freebsd_triage 2001-12-10 10:54:34 UTC
Responsible Changed
From-To: freebsd-bugs->murray

I'll look into this.
Comment 4 John Ross 2002-01-02 22:49:12 UTC
On Mon, 10 Dec 2001 murray@FreeBSD.org wrote:

> Can you please post your complete install.cfg file?

Sure thing, it's included below. (Some stuff removed to protect the
guilty)
>
> What happens if you specify the distributions but then choose
> "distSetCustom" instead of "distSetXDeveloper" ?
>
As long as you choose any distribution that needs X, it doesn't work. The
install.cfg I've included does not install any X libs from the
distribution (so It works) but you can somply replace:
	dists=bin doc manpages info compat22 compat3x compat4x crypto krb5
With:
	dists=bin Xbin

And it won't work anymore. (You could also use distSetXDeveloper,
distSetXUser, distSetEverything, distSetXF86 and it will fail as well)

I've tried it with Xbin, Xlib, XF86-xc, even just Xdoc, and it fails.

> 		- Murray
>


debug=YES
nonInteractive=YES
noConfirm=YES
noWarn=YES

# If you set the
# following to "NO" then it seems to assume you're not sure, and ask you
# (No == Maybe ?)
# So I went out and propositioned a few women, and used the
# response I got when I ignored their "No" answer.
#
# sysinstall now gets the idea.
tryDHCP=DropDead
tryRTSOL=BugOff

hostname=###HOSTNAME###
domainname=corp.attcanada.ca
defaultrouter=###ROUTERIP###
ipaddr=###CLIENTIP###
netmask=255.255.255.0
netDev=fxp0
nfs=10.35.248.150:/usr/jump/dist
mediaSetNFS

disk=da0
partition=all
bootManager=standard
diskPartitionEditor

da0s1-1=ufs 524288 /
da0s1-2=swap 8290304 none
da0s1-3=ufs 524288 /usr
da0s1-4=ufs 8388608 /var
da0s1-5=ufs 1048576 /tmp
diskLabelEditor

################################
dists=bin doc manpages info compat22 compat3x compat4x crypto krb5
distSetCustom
################################

installCommit

package=XFree86-clients-4.1.0
packageAdd

shutdown

-- 
John Ross
Systems Administrator
AT&T Canada

Executive ability is deciding quickly and getting somebody else to do
the work.
		-- John G. Pollard
Comment 5 Murray Stokely freebsd_committer freebsd_triage 2005-03-18 02:38:51 UTC
Responsible Changed
From-To: murray->freebsd-qa

I am no longer working in this area.
Comment 6 Mark Linimon freebsd_committer freebsd_triage 2007-06-14 07:09:59 UTC
State Changed
From-To: feedback->closed

I believe that this PR has been obsoleted by subsequent events.