From owner-freebsd-questions@FreeBSD.ORG Fri Oct 1 19:05:58 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D26201065694 for ; Fri, 1 Oct 2010 19:05:58 +0000 (UTC) (envelope-from vrwmiller@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 494FC8FC0A for ; Fri, 1 Oct 2010 19:05:57 +0000 (UTC) Received: by bwz15 with SMTP id 15so3171274bwz.13 for ; Fri, 01 Oct 2010 12:05:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=LIm5OyCrb9kwLwkvV9Po2LAi8GMcDwffipZL8+QSl20=; b=g4Bzvrx5f98dCq3Z1BLIhYXXkfHCOFq5KaywH0IabfcMXVomSmX5KetInlkEQsyXzI 3EqDYFK5DaPQEX2m2nndj5QfE4h8rSERjCHe5KpqaetBd5Mq7+n91xsZFf0Q6C0rfT0T IsKbM10R89D3w//6CGmY4lhRUymGRqGg2jGuY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=V+ajrB83QrsKfes1jAh5fYfDRCcxqL0BbZZwMbccTdyl67LIvKBtLgnJC5i5f1yToi a1pynxdN8o5UrBLFJy/h9nxMZQKIrmLaU6gUfI12g6HyYvRM9bMmdpumEqOM9GuCC0TA SuRUYZS9osWmBEXxD7yLDiINCDYQnFQPOWjC0= MIME-Version: 1.0 Received: by 10.204.126.153 with SMTP id c25mr4462459bks.27.1285959956984; Fri, 01 Oct 2010 12:05:56 -0700 (PDT) Sender: vrwmiller@gmail.com Received: by 10.204.58.18 with HTTP; Fri, 1 Oct 2010 12:05:56 -0700 (PDT) Date: Fri, 1 Oct 2010 15:05:56 -0400 X-Google-Sender-Auth: FmRBM1h24sabhJraPKGD43bn0Jk Message-ID: From: Rick Miller To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: dynamically generating install.cfg X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Oct 2010 19:05:58 -0000 Hello all, I would like to dynamically generate various settings that will be placed into the install.cfg file before sysinstall executes. I am PXE booting and have a mfsroot that contains a install.cfg with variables that will be applicable to all installs. Inside the mfsroot is a script that is supposed to download, via anon-ftp, a file that contains other variables which are set on per host basis. Inside the script, I run ifconfig to setup the interface then immediately run ftp to download the file from the PXE server. As soon as it gets the file, ifconfig runs and takes the interface down. During the install, the debug screen shows no errors when running ifconfig, yet when the script attempts to ftp to the PXE server, it gets a 'network unreachable'. As a result of this, I tried setting up the route as well, using route add default $gateway and get the same error. Running tcpdump on the PXE server confirms that there is not ftp attempt from the client. I am wondering if anyone has tried anything similar and had luck with it or if anyone might be able to provide direction in how I can troubleshoot. I'm not even sure if the interface is being setup properly. At the point where this fails, there is no holographic shell for me to get into and poke around. Thoughts? Ideas? -- Take care Rick Miller