From owner-freebsd-questions@FreeBSD.ORG Mon Mar 22 21:01:44 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 44425106566B for ; Mon, 22 Mar 2010 21:01:44 +0000 (UTC) (envelope-from mats.w.lindberg@gmail.com) Received: from mail-ew0-f227.google.com (mail-ew0-f227.google.com [209.85.219.227]) by mx1.freebsd.org (Postfix) with ESMTP id CEDDD8FC0C for ; Mon, 22 Mar 2010 21:01:43 +0000 (UTC) Received: by ewy27 with SMTP id 27so734879ewy.13 for ; Mon, 22 Mar 2010 14:01:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:received:message-id :subject:from:to:content-type; bh=nypcWHjhhiUxyMW/Luiyx4JxoQePZZ/e2SzzJtjgP0Q=; b=BlaPpHjxc73Rfs1K4ulD6Bqlgee9LUnFroY6UlImB5Nfu/ka2ffmXLt/yKxiIsA+MY FE8FJ6WPJyL8lhDHX1pUlTRVW+A/boKfyKTg7SowKwlkSIsm7Ka/koB9f93gZQX3S4il NM/4HJN722FcXucyjRhCuk4p0VeB28MhR6ssw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=PDRUdMXAXC4I3dKihEkhAmWXkfln/NBgPAJVBzA6YPkf/1c6AOVYR41PtclqegeWV/ z0Ua2erDOtOfeJM/CHoru/H7eDRdFv0/Lr5CgBuCEU40UFIgxWvysEjrE9rqw0L/urRw nhLWPwQSJGPtqqsADMl+gVnmXgIiYZo3LskAM= MIME-Version: 1.0 Received: by 10.213.10.207 with HTTP; Mon, 22 Mar 2010 13:35:44 -0700 (PDT) Date: Mon, 22 Mar 2010 21:35:44 +0100 Received: by 10.213.63.12 with SMTP id z12mr255059ebh.68.1269290144046; Mon, 22 Mar 2010 13:35:44 -0700 (PDT) Message-ID: <5e91cf2e1003221335x4afb161ib9fd565b97beb20a@mail.gmail.com> From: Mats Lindberg To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: diskless & dhclient 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: Mon, 22 Mar 2010 21:01:44 -0000 Hi all, I've tried to get my freebsd diskless system to get hold of some of the dhcp-options. E.g. my dhcp-server will always be the nfs-server as well. So I was hoping to create the /etc/fstab with the the dhcpd's ip as the nfs server. Thus not needing to have the hard coded nfsroot:/conf/'ip-address'/etc. Instead i'm looking for having almost all necessary files in the nfsroot:/conf/base/etc directory. I've tried to set ifconfig_ETHDEV="DHCP" in /etc/rc.conf and creating a bourne shell script /etc/dhclient_enter_hooks, but as far as I can detect the script is never run. I guess since the kernel already got the ip-address during pxeboot it does not care about renewing the ip-address, or?? I'm running a legacy FreeBSD 6.4. So - not really a specific question, more like a cry for guidance - anyone? /Mats